fixed bug #1966437 copy db broken

This commit is contained in:
Sebastian Mendel
2008-06-11 11:29:33 +00:00
parent 6f0f26fb9b
commit bd9ee5137b

View File

@@ -22,7 +22,7 @@ abstract class PMA_List extends ArrayObject
{ {
parent::__construct($array, $flags, $iterator_class); parent::__construct($array, $flags, $iterator_class);
} }
/** /**
* returns item only if there is only one in the list * returns item only if there is only one in the list
* *
@@ -63,8 +63,9 @@ abstract class PMA_List extends ArrayObject
*/ */
public function exists() public function exists()
{ {
$this_elements = $this->getArrayCopy();
foreach (func_get_args() as $result) { foreach (func_get_args() as $result) {
if (! in_array($result, $this)) { if (! in_array($result, $this_elements)) {
return false; return false;
} }
} }