From: Roland Häder Date: Tue, 30 May 2017 13:13:54 +0000 (+0200) Subject: use better method_exists() is_callable() also accepts __call() which is not X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee5cb7780cf124ab4e013a3aaf793f03ab8ccc44;p=core.git use better method_exists() is_callable() also accepts __call() which is not wanted here. Signed-off-by: Roland Häder --- diff --git a/framework/main/classes/lists/class_BaseList.php b/framework/main/classes/lists/class_BaseList.php index 5111b8d1..e629b177 100644 --- a/framework/main/classes/lists/class_BaseList.php +++ b/framework/main/classes/lists/class_BaseList.php @@ -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 {