Skip to content

Commit

Permalink
spacing
Browse files Browse the repository at this point in the history
Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
  • Loading branch information
xh3n1 committed Apr 2, 2019
1 parent f792b53 commit cc3a07a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions public_html/lists/admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
require_once dirname(__FILE__).'/inc/random_compat/random.php';

// Check if required extensions are installed.
$phpExtensions = array('pcre',
$phpExtensions = array(
'pcre',
'core',
'date',
'hash',
Expand All @@ -45,15 +46,15 @@

$notinstalled = array();

foreach ($phpExtensions as $value){
foreach ($phpExtensions as $value) {
if (!extension_loaded($value)) {
array_push($notinstalled, $value);
}
}
if (count($notinstalled)>0){
$message = "The following PHP extensions are missing:".'<br>';
foreach ($notinstalled as $value){
$message .= $value.'<br>';
if (count($notinstalled) > 0) {
$message = "The following PHP extensions are missing:" . '<br>';
foreach ($notinstalled as $value) {
$message .= $value . '<br>';
}
die($message);
}
Expand Down

0 comments on commit cc3a07a

Please sign in to comment.