]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/mediadata_functions.php
Don't abuse isValidSqlLink() for checking results
[mailer.git] / inc / libs / mediadata_functions.php
index 27f38ad32475784e46afe6a43f94270facd9829b..18bd21e7fbf6e92ba51377c9309c6dba518602fd 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -47,7 +47,7 @@ function updateMediadataEntry ($keys_array, $mode, $value) {
        $added = FALSE;
 
        // Are there entries?
-       if (is_array($keys_array) && ($value > 0)) {
+       if (isFilledArray($keys_array) && ($value > 0)) {
                // Is an array so we can run it through
                foreach ($keys_array as $key) {
                        // First check if it does exist
@@ -58,7 +58,7 @@ FROM
 WHERE
        `media_key`='%s'
 LIMIT 1", array($key), __FUNCTION__, __LINE__);
-                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',SQL_NUMROWS()=' . SQL_NUMROWS($result_media));
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',sqlNumRows()=' . sqlNumRows($result_media));
                        if (sqlNumRows($result_media) == 0) {
                                // Not found so we create it (mode will be ignored here!)
                                sqlQueryEscaped("INSERT INTO `{?_MYSQL_PREFIX?}_mediadata` (`media_key`, `media_value`) VALUES ('%s', '%s')",