fixed bug #1966437 copy db broken
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user