}
}
// SELECT query string from table, columns and so on... ;-)
-function SQL_RESULT_FROM_ARRAY ($table, array $columns, $idRow, $id) {
+function SQL_RESULT_FROM_ARRAY ($table, $columns, $idRow, $id) {
// Prepare the SQL statement
$SQL = "SELECT ".implode(", ", $columns)." FROM "._MYSQL_PREFIX."_".$table." WHERE ".$idRow."=%d LIMIT 1";
return $MODE;
}
// Change activation status
-function ADMIN_CHANGE_ACTIVATION_STATUS (array $IDs, $table, $row, $idRow = "id") {
+function ADMIN_CHANGE_ACTIVATION_STATUS ($IDs, $table, $row, $idRow = "id") {
global $CONFIG;
$cnt = 0; $newStatus = "Y";
- if (count($IDs) > 0) {
+ if ((is_array($IDs)) && (count($IDs) > 0)) {
// "Walk" all through and count them
foreach ($IDs as $id=>$selected) {
// Secure the ID number
}
}
// Delete rows by given ID numbers
-function ADMIN_DELETE_ENTRIES_CONFIRM (array $IDs, $table, $row, array $columns = array(), array $filterFunctions = array(), $deleteNow=false, $idRow="id") {
+function ADMIN_DELETE_ENTRIES_CONFIRM ($IDs, $table, $row, $columns = array(), $filterFunctions = array(), $deleteNow=false, $idRow="id") {
global $CONFIG;
$OUT = ""; $SW = 2;
- if (count($IDs) > 0) {
+ if ((is_array($IDs)) && (count($IDs) > 0)) {
// "Walk" through all entries and count them
if ($deleteNow) {
// Delete them