]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
But only when it is not empty
[mailer.git] / inc / mysql-manager.php
index 28ba603cfe196063e7e2302e87b53ce23212ba87..c1a2bb4607c092ae81f458e92428cf27f6ee482a 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -843,6 +843,8 @@ function getActionFromModuleWhat ($module, $what) {
                                $module,
                                $what
                        ), __FUNCTION__, __LINE__);
+
+               // Entry found?
                if (SQL_NUMROWS($result) == 1) {
                        // Load action value and pray that this one is the right you want... ;-)
                        $data = SQL_FETCHARRAY($result);
@@ -2281,11 +2283,8 @@ function doGenericEditEntriesConfirm ($tableName, $columns = array(), $filterFun
                                continue;
                        } // END - if
 
-                       // Is the cache file loadable?
-                       if ($GLOBALS['cache_instance']->loadCacheFile($cache)) {
-                               // Then remove it
-                               $GLOBALS['cache_instance']->removeCacheFile();
-                       } // END - if
+                       // Use rebuildCache() to delete it
+                       rebuildCache($cache);
                } // END - foreach
        } // END - if