From d51d90ea79446c288184b023a7d1d3adabe739c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 28 Jul 2011 21:55:02 +0000 Subject: [PATCH] fetchUserData() does not accept NULL, please report any findings --- inc/mysql-manager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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') { -- 2.39.5