mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Check for existence of more functions before installation
This commit is contained in:
parent
ca99ca7f04
commit
9c68cb4e74
1 changed files with 3 additions and 3 deletions
|
|
@ -337,7 +337,7 @@ class installController extends install
|
|||
}
|
||||
|
||||
// Check curl
|
||||
if(function_exists('curl_init'))
|
||||
if(function_exists('curl_init') && function_exists('curl_exec'))
|
||||
{
|
||||
$checklist['curl'] = true;
|
||||
}
|
||||
|
|
@ -347,7 +347,7 @@ class installController extends install
|
|||
}
|
||||
|
||||
// Check GD
|
||||
if(function_exists('imagecreatefromgif'))
|
||||
if(function_exists('imagecreatefromjpeg') && function_exists('imagecreatefrompng'))
|
||||
{
|
||||
$checklist['gd'] = true;
|
||||
}
|
||||
|
|
@ -367,7 +367,7 @@ class installController extends install
|
|||
}
|
||||
|
||||
// Check json
|
||||
if(function_exists('json_encode'))
|
||||
if(function_exists('json_encode') && function_exists('json_decode'))
|
||||
{
|
||||
$checklist['json'] = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue