From: <pdo...@us...> - 2021-12-07 19:27:24
|
Revision: 14935 http://sourceforge.net/p/squirrelmail/code/14935 Author: pdontthink Date: 2021-12-07 19:27:22 +0000 (Tue, 07 Dec 2021) Log Message: ----------- Mild improvement in plugin detection Modified Paths: -------------- trunk/squirrelmail/src/configtest.php Modified: trunk/squirrelmail/src/configtest.php =================================================================== --- trunk/squirrelmail/src/configtest.php 2021-12-07 19:24:43 UTC (rev 14934) +++ trunk/squirrelmail/src/configtest.php 2021-12-07 19:27:22 UTC (rev 14935) @@ -455,7 +455,7 @@ 'xmailer' // Integrated into SquirrelMail 1.2 core ); -if (isset($plugins[0])) { +if (!empty($plugins) && is_array($plugins)) { foreach($plugins as $plugin) { if(!file_exists(SM_PATH .'plugins/'.$plugin)) { do_err('You have enabled the <i>'.$plugin.'</i> plugin, but I cannot find it.', FALSE); @@ -559,7 +559,7 @@ echo $IND . "Plugins OK.<br />\n"; } } else { - echo $IND . "Plugins are not enabled in config.<br />\n"; + echo $IND . "Plugins are not correctly enabled in the configuration file.<br />\n"; } foreach($theme as $thm) { if(!file_exists($thm['PATH'])) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |