mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-25 03:19:08 +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