mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Update bash-to-php-interpreter.php
This commit is contained in:
parent
09dcc123be
commit
dd1efc58a1
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ include ("/usr/local/vesta/func/main.php");
|
|||
include ("/usr/local/vesta/func/string.php");
|
||||
|
||||
$counter=count($argv);
|
||||
if ($counter<1) myvesta_throw_error(2, 'Function is missing');
|
||||
if ($counter<2) myvesta_throw_error(2, 'Function is missing');
|
||||
|
||||
$func="myvesta_".$argv[1];
|
||||
if (!function_exists($func)) myvesta_throw_error(2, 'Function does not exists');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue