Fixes for 'empty version'
[mailer.git] / inc / libs / task_functions.php
index 7179c326b604e689cae6943319984a3dbf743b14..f59554b1e374fb9dbf67c0b850dc2802586850b2 100644 (file)
@@ -268,7 +268,7 @@ ORDER BY
                $TITLEs[] = getMessage('ADMIN_TASK_INACTIVE_AUTOPURGE_TITLE');
        }
 
-       if (getExtensionVersion('sql_patches') >= '0.3.4') {
+       if (isExtensionInstalledAndNewer('sql_patches', '0.3.4')) {
                // Check for accounts without referal
                addSql("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `refid`=0 ORDER BY `userid` ASC");
                $DESCRs[] = getMessage('ADMIN_TASK_LIST_ACCOUNT_NOREF');