if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("sql_patches")) {
+} elseif (!EXT_IS_ACTIVE('sql_patches')) {
return;
}
//* DEBUG: */ echo basename(__FILE__)."<br />\n";
// Update user profiles
-if (GET_EXT_VERSION("order") >= "0.1.1") {
+if (GET_EXT_VERSION('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 {
array($content['locked_points'], bigintval($content['userid']), $content['ref_depth']), __FILE__, __LINE__, false));
// Update mediadata as well
- if (GET_EXT_VERSION("mediadata") >= "0.0.4") {
+ if (GET_EXT_VERSION('mediadata') >= '0.0.4') {
// Update database
- MEDIA_UPDATE_ENTRY(array("total_points"), "add", $content['locked_points']);
+ MEDIA_UPDATE_ENTRY(array('total_points'), 'add', $content['locked_points']);
} // END - if
} // END - while
} // END - if