From 48e59d95b50d7dd13be3c8c9b0d03c47a750120c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 18 Sep 2008 08:21:59 +0000 Subject: [PATCH] Bonus mail sent in no category are no longer displayed as 'category not found' --- inc/databases.php | 2 +- inc/language/de.php | 1 + inc/mysql-manager.php | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index 3c2480c132..51488df931 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "355"); +define('CURR_SVN_REVISION', "356"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/language/de.php b/inc/language/de.php index 590803be7d..444acba336 100644 --- a/inc/language/de.php +++ b/inc/language/de.php @@ -1118,6 +1118,7 @@ define('ADMIN_CONFIG_PROXY_PORT', "Port-Nummer (z.B. 8085):"); define('ADMIN_CONFIG_PROXY_USERNAME', "Benuztername (falls vorhanden):"); define('ADMIN_CONFIG_PROXY_PASSWORD', "Passwort (falls vorhanden):"); define('EDIT_ENTRIES', "Einträge ändern"); +define('_CATEGORY_NONE', "Keine Kategorie"); define('ADMIN_SEND_RESET_LINK_TITLE', "1/4: Administratorkennwort zurücksetzen"); define('ADMIN_VALIDATE_HASH_TITLE', "2/4: Validierung Iher Logindaten"); diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 83c8f1cf38..279808c0ce 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -960,7 +960,10 @@ function GET_CATEGORY ($cid) { $ret = _CATEGORY_404; // Is the category id set? - if (!empty($cid)) { + if ($cid == "0") { + // No category + $ret = _CATEGORY_NONE; + } elseif ($cid > 0) { // Lookup the category in database $result = SQL_QUERY_ESC("SELECT cat FROM "._MYSQL_PREFIX."_cats WHERE id=%s LIMIT 1", array(bigintval($cid)), __FILE__, __LINE__); -- 2.39.5