if ($cats > 0) {
$LEAST = false;
if (isFormSent()) {
- $cnt = 0;
+ $cnt = '0';
foreach (postRequestElement('cat') as $cat => $joined) {
if ($joined != 'Y') $cnt++;
} // END - foreach
// Is the form sent?
if (isFormSent()) {
// Start counting all
- $cnt = 0;
+ $cnt = '0';
// Go through all entries
foreach (postRequestElement('cat') as $cat => $joined) {
$result_user = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid`=%s AND `cat_id`=%s LIMIT 1",
array($UID, bigintval($cat)), __FILE__, __LINE__);
- if (SQL_NUMROWS($result_user) == 0) {
+ if (SQL_NUMROWS($result_user) == '0') {
$sql = "INSERT INTO `{?_MYSQL_PREFIX?}_user_cats` (userid, cat_id) VALUES ('%s','%s')";
} // END - if