Skip to content

Commit

Permalink
Fixed deprecated variable reference
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nag0n committed Mar 8, 2023
1 parent 600ff59 commit bca2595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static function loopIn($msg = '', $options = array()) {
$optionStr = '';
foreach ($options as $index => $opt)
$optionStr .= $opt . (((count($options) - 1) == $index) ? '' : ',');
$prompt = (empty($msg) ? '' : "$msg ") . self::color("[${optionStr},q] ", CLI_WHITE);
$prompt = (empty($msg) ? '' : "$msg ") . self::color("[{$optionStr},q] ", CLI_WHITE);
}
$prompt .= ': ';
// Loop until the user gives a valid answer or quits
Expand Down Expand Up @@ -315,4 +315,4 @@ public static function deleteDirectoryAndFiles(string $dir) {
return rmdir($dir);
}
}
?>
?>

0 comments on commit bca2595

Please sign in to comment.