X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Freset%2Freset_daily.php;h=be14b25c2b6c771e5a22f94472418411b989b992;hp=dde99e6e79dd94294cab1e1ef4889e9b36d05b89;hb=e45e218c4f629ec63f0788cab231bfc88b3fa46e;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60 diff --git a/inc/reset/reset_daily.php b/inc/reset/reset_daily.php index dde99e6e79..be14b25c2b 100644 --- a/inc/reset/reset_daily.php +++ b/inc/reset/reset_daily.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -48,7 +49,7 @@ if ((getOutputMode() != 0) || (!isResetModeEnabled())) return; //* DEBUG: */ outputHtml(basename(__FILE__)."
"); // Update user profiles -if ((isExtensionActive('order')) && (getExtensionVersion('order') >= '0.1.1')) { +if (isExtensionInstalledAndNewer('order', '0.1.1')) { // Latest version $result_daily = SQL_QUERY("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET receive_mails=max_mails, mail_orders=0 WHERE receive_mails != max_mails", __FILE__, __LINE__); } else { @@ -85,7 +86,7 @@ LIMIT 1", array($content['locked_points'], bigintval($content['userid']), $content['ref_depth']), __FILE__, __LINE__, false)); // Update mediadata as well - if (getExtensionVersion('mediadata') >= '0.0.4') { + if (isExtensionInstalledAndNewer('mediadata', '0.0.4')) { // Update database updateMediadataEntry(array('total_points'), 'add', $content['locked_points']); } // END - if