]> git.mxchange.org Git - mailer.git/blobdiff - 0.2.1/inc/modules/admin/admin-inc.php
Fixed broken german umlauts
[mailer.git] / 0.2.1 / inc / modules / admin / admin-inc.php
index 487eb2c3c7fec804f37a9d7d6a5db32e0161a1cd..0ac017533a5459133065f1e95ba120951d6487e9 100644 (file)
@@ -8,7 +8,7 @@
  * -------------------------------------------------------------------- *
  * Short description : Administrative related functions                 *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : F�r die Administration ben�tigte Funktionen      *
+ * Kurzbeschreibung  : Fuer die Administration benoetigte Funktionen    *
  * -------------------------------------------------------------------- *
  *                                                                      *
  * -------------------------------------------------------------------- *
@@ -713,10 +713,10 @@ function ADMIN_CHECK_MENU_MODE()
        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
@@ -755,10 +755,10 @@ function ADMIN_CHANGE_ACTIVATION_STATUS (array $IDs, $table, $row, $idRow = "id"
        }
 }
 // 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