]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Bonus mail sent in no category are no longer displayed as 'category not found'
[mailer.git] / inc / mysql-manager.php
index 83c8f1cf38cba223d7013978453e8cb9605cc206..279808c0ce4768053e601a02f005a8883d6cdb76 100644 (file)
@@ -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__);