From: Edward Date: Wed, 10 Oct 2018 02:41:09 +0000 (+0800) Subject: UpdateDatabase.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=2dde870931c54385e231b6c00897472f8e47ccf3 UpdateDatabase.php --- diff --git a/UpdateDatabase.php b/UpdateDatabase.php index 6ffa9aca..e13af7c9 100644 --- a/UpdateDatabase.php +++ b/UpdateDatabase.php @@ -198,10 +198,10 @@ class Pman_Core_UpdateDatabase extends Pman $response = $this->curl("http://localhost{$this->local_base_url}/Core/UpdateDatabase/VerifyExtensions"); $json = json_decode($response, true); - print_R($response);exit; + if(empty($json['data']) || $json['data'] != 'DONE'){ echo "\nError: Missing php extensions:\n"; - print_r($json); + print_r($response); echo "Please install the above extensions and restart the apache.\n"; sleep(5);