You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: public_html/lists/admin/index.php
+3-11Lines changed: 3 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -521,23 +521,15 @@ function mb_strtolower($string)
521
521
echoInfo($GLOBALS['I18N']->get('Running in testmode, no emails will be sent. Check your config file.'));
522
522
}
523
523
524
-
if (!strpos(VERSION, 'dev')){
524
+
if (!strpos(VERSION, 'dev')){
525
525
526
526
$updaterdir = __DIR__ . '/../updater';
527
527
528
528
include'updateLib.php';
529
529
530
-
if (showUpdateNotification()) {
531
-
try {
532
-
533
-
$updateNotif = checkForUpdate('init.php');
534
-
535
-
} catch (Exception$e) {
536
-
537
-
echos('Error: '), $e->getMessage(), "\n";
538
-
539
-
}
530
+
if (showUpdateNotification() && (getCurrentphpListVersion() !== false) && extension_loaded('curl')) {
540
531
532
+
$updateNotif = checkForUpdate('init.php');
541
533
$moreInfo = '<a href="https://www.phplist.com/download?utm_source=pl' . VERSION . '&utm_medium=updatedownload&utm_campaign=phpList" title="' . s('Download the new version') . '" target="_blank">' . s('Download the new version') . '</a>';
0 commit comments