Old config.php is now automatically updated to new config-local.php format, several...
[mailer.git] / inc / modules / member / what-reflinks.php
index 64e00bf64faa9d6cf29f07e77f6e5719695da347..375e1f66a4938f2f0714b1f9ba28e261f4d32406 100644 (file)
@@ -49,7 +49,7 @@ ADD_DESCR('member', __FILE__);
 
 // Load current referal clicks
 $result = SQL_QUERY_ESC("SELECT ref_clicks FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
-       array(getUserId()), __FILE__, __LINE__);
+array(getUserId()), __FILE__, __LINE__);
 list($c) = SQL_FETCHROW($result);
 SQL_FREERESULT($result);
 
@@ -87,7 +87,7 @@ if (SQL_NUMROWS($result) > 0) {
                if ($test == $content['url']) {
                        // Download banner (I hope you keep the banner on same server???)
                        $fp = sendGetRequest($content['url']); $bannerContent = '';
-                       if ((!empty($fp)) && (is_array($fp)) && (count($fp) > 0) {
+                       if ((!empty($fp)) && (is_array($fp)) && (count($fp) > 0)) {
                                // Loads only found banner, when there is a 404 error this foreach() command
                                // will cause an "Invalid argument supplied for foreach()" error
                                foreach ($fp as $f) {