Old config.php is now automatically updated to new config-local.php format, several...
[mailer.git] / inc / modules / sponsor / settings.php
index 96ce1e5b2e571e8809b0a5871ede776d6e6b5ac4..2aa04e5342e590bc0f6e8c3c6d0f6bc005ef0b58 100644 (file)
@@ -39,7 +39,7 @@
 if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
-} elseif ((!EXT_IS_ACTIVE('sponsor'))
+} elseif (!EXT_IS_ACTIVE('sponsor')) {
        addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'sponsor'));
        return;
 } elseif (!IS_SPONSOR()) {
@@ -52,7 +52,7 @@ if (!defined('__SECURITY')) {
 $result = SQL_QUERY_ESC("SELECT status, receive_warnings, warning_interval, email, surname, family, gender
 FROM `{!_MYSQL_PREFIX!}_sponsor_data`
 WHERE `id`='%s' AND password='%s' LIMIT 1",
- array(bigintval(getSession('sponsorid')), getSession('sponsorpass')), __FILE__, __LINE__);
+array(bigintval(getSession('sponsorid')), getSession('sponsorpass')), __FILE__, __LINE__);
 if (SQL_NUMROWS($result) == 1) {
        // Load sponsor data
        $content = SQL_FETCHARRAY($result);