mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
First lot of compatability fixes
This commit is contained in:
@@ -235,7 +235,7 @@ class System
|
||||
} elseif($opt[0] == 'm') {
|
||||
// if the mode is clearly an octal number (starts with 0)
|
||||
// convert it to decimal
|
||||
if (strlen($opt[1]) && $opt[1]{0} == '0') {
|
||||
if (strlen($opt[1]) && $opt[1][0] == '0') {
|
||||
$opt[1] = octdec($opt[1]);
|
||||
} else {
|
||||
// convert to int
|
||||
@@ -545,7 +545,7 @@ class System
|
||||
break;
|
||||
case '-name':
|
||||
if (OS_WINDOWS) {
|
||||
if ($args[$i+1]{0} == '\\') {
|
||||
if ($args[$i+1][0] == '\\') {
|
||||
// prepend drive
|
||||
$args[$i+1] = addslashes(substr(getcwd(), 0, 2) . $args[$i + 1]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user