Skip to content

Commit

Permalink
parentheses in the wrong spot
Browse files Browse the repository at this point in the history
PHP Parse error:  syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /usr/share/horde/imp/lib/Prefs/Sort.php on line 44
  • Loading branch information
ddrown committed May 6, 2023
1 parent 58f5d9f commit e96b2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Prefs/Sort.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct()

$serializedPref = $prefs->getValue(self::SORTPREF);
// Only unserialize non-empty strings. Disallow yielding any classes.
if (!empty($serializedPref && is_string($serializedPref))) {
if (!empty($serializedPref) && is_string($serializedPref)) {
$sortpref = @unserialize($serializedPref, ['allowed_classes' => false]);
if (is_array($sortpref)) {
$this->_sortpref = $sortpref;
Expand Down

0 comments on commit e96b2f4

Please sign in to comment.