]> git.mxchange.org Git - core.git/commitdiff
use better method_exists() is_callable() also accepts __call() which is not
authorRoland Häder <roland@mxchange.org>
Tue, 30 May 2017 13:13:54 +0000 (15:13 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 30 May 2017 13:13:54 +0000 (15:13 +0200)
wanted here.

Signed-off-by: Roland Häder <roland@mxchange.org>
framework/main/classes/lists/class_BaseList.php

index 5111b8d1401ef5e248b29d8a2b0ba995f604ed57..e629b17771c63c7f6410728febaeb044aadbec51 100644 (file)
@@ -323,7 +323,7 @@ class BaseList extends BaseFrameworkSystem implements IteratorAggregate, Countab
                } elseif ((is_array($entry)) && (isset($entry['id']))) {
                        // Supported array found
                        $entry2 = crc32($entry['id']) . ':' . count($entry);
-               } elseif (($this->callbackInstance instanceof FrameworkInterface) && (is_callable(array($this->callbackInstance, 'generateListHashFromEntry')))) {
+               } elseif (($this->callbackInstance instanceof FrameworkInterface) && (method_exists(array($this->callbackInstance, 'generateListHashFromEntry')))) {
                        // Call it instead
                        $entry2 = $this->callbackInstance->generateListHashFromEntry($entry);
                } else {