projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e90df61
)
A missing ext-user could also cause errors here ...
author
Roland Häder
<roland@mxchange.org>
Thu, 30 Jun 2011 02:09:56 +0000
(
02:09
+0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 30 Jun 2011 02:09:56 +0000
(
02:09
+0000)
inc/libs/task_functions.php
patch
|
blob
|
history
diff --git
a/inc/libs/task_functions.php
b/inc/libs/task_functions.php
index d8e62f093197855ab067388ec525015417f88fc6..96355fa9ce87d9db026064103452239b1a84be91 100644
(file)
--- a/
inc/libs/task_functions.php
+++ b/
inc/libs/task_functions.php
@@
-231,7
+231,8
@@
function outputAdvancedOverview (&$result_main) {
$content['send_bonus_mails'] = '{--ADMIN_EXTENSION_BONUS_404--}';
}
$content['send_bonus_mails'] = '{--ADMIN_EXTENSION_BONUS_404--}';
}
- if (isExtensionActive('autopurge')) {
+ // Both extensions must be there
+ if ((isExtensionActive('autopurge')) && (isExtensionActive('user'))) {
// Start finding them...
$EXCLUDE_LIST = '';
// Start finding them...
$EXCLUDE_LIST = '';
@@
-264,13
+265,13
@@
ORDER BY
$TITLEs[] = '{--ADMIN_TASK_INACTIVE_AUTOPURGE_TITLE--}';
}
$TITLEs[] = '{--ADMIN_TASK_INACTIVE_AUTOPURGE_TITLE--}';
}
- if (
isExtensionInstalledAndNewer('sql_patches', '0.3.4'
)) {
+ if (
(isExtensionInstalledAndNewer('sql_patches', '0.3.4')) && (isExtensionActive('user')
)) {
// Check for accounts without referal
addSql("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `refid`=0 ORDER BY `userid` ASC");
$DESCRs[] = '{--ADMIN_TASK_LIST_ACCOUNT_NOREF--}';
$TITLEs[] = '{--ADMIN_TASK_LIST_ACCOUNT_NOREFERAL_TITLE--}';
$WHATs[] = 'list_user&mode=norefs';
// Check for accounts without referal
addSql("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `refid`=0 ORDER BY `userid` ASC");
$DESCRs[] = '{--ADMIN_TASK_LIST_ACCOUNT_NOREF--}';
$TITLEs[] = '{--ADMIN_TASK_LIST_ACCOUNT_NOREFERAL_TITLE--}';
$WHATs[] = 'list_user&mode=norefs';
- }
+ }
// END - if
if (isExtensionActive('payout')) {
// List new payout requests
if (isExtensionActive('payout')) {
// List new payout requests
@@
-316,7
+317,8
@@
ORDER BY
$TITLEs[] = '{--ADMIN_TASK_LIST_NOTIFICATIONS_TITLE--}';
} // END - if
$TITLEs[] = '{--ADMIN_TASK_LIST_NOTIFICATIONS_TITLE--}';
} // END - if
- if (isExtensionInstalledAndNewer('bonus', '0.2.3')) {
+ // Both extensions must be there
+ if ((isExtensionInstalledAndNewer('bonus', '0.2.3')) && (isExtensionActive('user'))) {
// Active rallye
if (isExtensionInstalledAndNewer('bonus', '0.6.9')) {
// Add more bonus points here
// Active rallye
if (isExtensionInstalledAndNewer('bonus', '0.6.9')) {
// Add more bonus points here
@@
-357,7
+359,8
@@
ORDER BY
$TITLEs[] = '{--ADMIN_TASK_LIST_BONUS_TITLE--}';
}
$TITLEs[] = '{--ADMIN_TASK_LIST_BONUS_TITLE--}';
}
- if (isExtensionInstalledAndNewer('beg', '0.1.2')) {
+ // Again both extensions must be there
+ if ((isExtensionInstalledAndNewer('beg', '0.1.2')) && (isExtensionActive('user'))) {
// ----- Begging rallye -----
// Init variable
// ----- Begging rallye -----
// Init variable