summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2011-05-25 11:04:41 -0400
committerspiderr <spider@viovio.com>2011-05-25 11:04:41 -0400
commit81e598f11e0ce51cb97a2d87fc7f79ddeae05d3f (patch)
treed930a6b9b2094f9a5ac40955fb4e9953d00499bd
parent5ad6c0f96730e272bb71d8b4f3b79b8044dd1da0 (diff)
downloadtags-81e598f11e0ce51cb97a2d87fc7f79ddeae05d3f.tar.gz
tags-81e598f11e0ce51cb97a2d87fc7f79ddeae05d3f.tar.bz2
tags-81e598f11e0ce51cb97a2d87fc7f79ddeae05d3f.zip
empty check on pParamHash[sort_mode]
-rw-r--r--LibertyTag.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibertyTag.php b/LibertyTag.php
index 3f46e66..aea2f4e 100644
--- a/LibertyTag.php
+++ b/LibertyTag.php
@@ -444,7 +444,7 @@ class LibertyTag extends LibertyBase {
'created_desc',
);
- if( empty( $pParamHash['sort_mode'] ) || !in_array( $pParamHash['sort_mode'], $sortHash ) ) {
+ if( empty( $pParamHash['sort_mode'] ) || in_array( $pParamHash['sort_mode'], $sortHash ) ) {
$pParamHash['sort_mode'] = 'tag_asc';
}