mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-26 02:13:48 +01:00
LScli::unquote_word: Fix PHP warning
This commit is contained in:
parent
15e3ffe6ef
commit
e8781ab779
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ class LScli extends LSlog_staticLoggerClass {
|
|||
* @return string The quote character or an empty string if word if not quoted
|
||||
*/
|
||||
public static function unquote_word(&$word) {
|
||||
if (in_array($word[0], array('"', "'"))) {
|
||||
if ($word && in_array($word[0], array('"', "'"))) {
|
||||
$quote_char = $word[0];
|
||||
$word = substr($word, 1);
|
||||
if ($word[strlen($word)-1] == $quote_char)
|
||||
|
|
Loading…
Reference in a new issue