From: Roland Häder Date: Thu, 28 Jul 2011 21:55:02 +0000 (+0000) Subject: fetchUserData() does not accept NULL, please report any findings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d51d90ea79446c288184b023a7d1d3adabe739c3;p=mailer.git fetchUserData() does not accept NULL, please report any findings --- diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 51fb3de99d..6ceef81e5f 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -451,7 +451,10 @@ function fetchUserData ($value, $column = 'userid') { if (!isExtensionActive('user')) { // Absent ext-user is really not good return false; - } // END - if + } elseif (is_null($value)) { + // This shall never happen, so please report it + debug_report_bug(__FUNCTION__, __LINE__, 'value=NULL,column=' . $column . ' - value can never be NULL'); + } // If we should look for userid secure&set it here if (substr($column, -2, 2) == 'id') {