]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-order.php
Fix for 'array-to-string-conversion' bug in request-functions.php
[mailer.git] / inc / extensions / ext-order.php
index 69385eec0a1a7f2915ea829e4e24561bec59da70..e17010696af2ef17e3d126737f0c52a0da5fbbb8 100644 (file)
@@ -312,12 +312,15 @@ INDEX (`pool_id`)
        }
        break;
 
+case "modify": // When the extension got modified
+       break;
+
 case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
        break;
 
 default: // Do stuff when extension is loaded
        // Do daily reset only when installed and extension version is at least 0.1.1
-       if ((isBooleanConstantAndTrue('__DAILY_RESET')) && (isInstalled()) && (isAdminRegistered()) && (GET_EXT_VERSION("order") >= "0.1.1")) {
+       if ((isResetModeEnabled()) && (isInstalled()) && (isAdminRegistered()) && (GET_EXT_VERSION("order") >= "0.1.1")) {
                // Reset mail order values
                $result_ext = SQL_QUERY("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET mail_orders=0 WHERE mail_orders > 0", __FILE__, __LINE__);
        } // END - if