This commit is contained in:
scVnner 2018-12-07 16:41:06 +02:00
commit 81090f6275
1 changed files with 2 additions and 4 deletions

View File

@ -63,8 +63,7 @@ function parse_categories( string $file ) : array
$data = new SimpleXMLElement( $categories );
$categories = $data->category;
for( $i = 0 ; $i < sizeof( $categories ) ; $i++ )
{
for( $i = 0 ; $i < sizeof( $categories ) ; $i++ ){
$result[$i]['id'] = $categories[$i]['id'];
$result[$i]['name'] = ltrim( ($categories[$i])->Name );
$result[$i]['desc'] = ltrim( ($categories[$i])->Description );
@ -102,8 +101,7 @@ function parse_options( int $argc, array $argv ) : object
die( "\x0a" . RED . "[ERROR]" . NONE . " - Too many arguments!\x0a" );
}
while( ( $argc-- ) > 1 )
{
while( ( $argc-- ) > 1 ){
if( strpos( $argv[ $argc ], "=" ) !== False ){
$arg_N = @explode( "=", $argv[ $argc ] )[0];
$arg_V = @explode( "=", $argv[ $argc ] )[1];