Fix for inserted codes while registering of extensions, many rewrites/cleanups:
[mailer.git] / inc / libs / sponsor_functions.php
index 97034d5b9bc9a75fdd8fdc30277e4ed95db1b3cc..c6cd2e5b346215a95e884d2022ddcd71f62c4bac 100644 (file)
@@ -272,7 +272,7 @@ LIMIT 1",
 //
 function addSponsorMenu ($current) {
        $OUT = '';
-       $WHERE = " AND active='Y'";
+       $WHERE = " AND `active`='Y'";
        if (isAdmin()) $WHERE = '';
 
        // Load main menu entries
@@ -282,7 +282,7 @@ FROM
        `{?_MYSQL_PREFIX?}_sponsor_menu`
 WHERE
        (`what`='' OR `what` IS NULL)
-       ".$WHERE."
+       " . $WHERE . "
 ORDER BY
        `sort` ASC", __FUNCTION__, __LINE__);
        if (!SQL_HASZERONUMS($result_main)) {
@@ -297,7 +297,7 @@ WHERE
        `action`='%s' AND
        `what` != '' AND
        `what` IS NOT NULL
-       ".$WHERE."
+       " . $WHERE . "
 ORDER BY
        `sort` ASC",
                        array($content['main_action']), __FUNCTION__, __LINE__);