// 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);
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) {