function declineCache($cacheid) { // activate the cache by changing its status to yet unavailable if (actionRequired($cacheid)) { if (XDb::xSql("UPDATE caches SET status = 6 WHERE cache_id= ? ", $cacheid)) { XDb::xSql("UPDATE sysconfig SET value = value - 1 WHERE name = 'hidden_for_approval'"); return true; } else { return false; } } return false; }
function declineCache($cacheid) { // activate the cache by changing its status to yet unavailable if (actionRequired($cacheid)) { $sql = "UPDATE caches SET status = 6 WHERE cache_id='" . sql_escape(intval($cacheid)) . "'"; if (mysql_query($sql)) { sql("UPDATE sysconfig SET value = value - 1 WHERE name = 'hidden_for_approval'"); return true; } else { return false; } } return false; }