Skip to content

Commit

Permalink
Merge pull request #12 from ddrown/ddrown-paren-typo
Browse files Browse the repository at this point in the history
parentheses in the wrong spot
  • Loading branch information
mrubinsk committed May 18, 2023
2 parents 58f5d9f + e96b2f4 commit 01cb38b
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 01cb38b

Please sign in to comment.