addMenuDescription('admin', __FILE__);
// Init variable
-$SEL = 0;
+$SEL = '0';
// Some sanity-check
if ((!isPostRequestElementSet('url')) || (!isPostRequestElementSet(('alternate')))) {
// Check if banner is already added
$result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE url='%s' LIMIT 1",
array(postRequestElement('url')), __FILE__, __LINE__);
- if (SQL_NUMROWS($result) == 0) {
+ if (SQL_NUMROWS($result) == '0') {
// Add banner
SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refbanner` (url, alternate, visible)
VALUES ('%s','%s','%s')",