projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5170f9e
)
better value checking
author
Alan
<alan@roojs.com>
Wed, 15 Mar 2023 06:43:00 +0000
(14:43 +0800)
committer
Alan
<alan@roojs.com>
Wed, 15 Mar 2023 06:43:00 +0000
(14:43 +0800)
Pman/Roo.php
patch
|
blob
|
history
diff --git
a/Pman/Roo.php
b/Pman/Roo.php
index
83bf522
..
344bbb0
100644
(file)
--- a/
Pman/Roo.php
+++ b/
Pman/Roo.php
@@
-754,11
+754,11
@@
class Pman_Roo extends Pman
{
// Db_DataObject::debugLevel(1);
{
// Db_DataObject::debugLevel(1);
- $sort = empty($_REQUEST['sort']) ? $sort : $_REQUEST['sort'];
- $dir = empty($_REQUEST['dir']) ? $dir : $_REQUEST['dir'];
+ $sort = empty($_REQUEST['sort'])
|| !is_string($_REQUEST['sort'])
? $sort : $_REQUEST['sort'];
+ $dir = empty($_REQUEST['dir'])
|| !is_string($_REQUEST['dir'])
? $dir : $_REQUEST['dir'];
$dir = $dir == 'ASC' ? 'ASC' : 'DESC';
$dir = $dir == 'ASC' ? 'ASC' : 'DESC';
- $ms = empty($_REQUEST['_multisort']) ? false : $_REQUEST['_multisort'];
+ $ms = empty($_REQUEST['_multisort'])
|| !is_string($_REQUEST['_multisort'])
? false : $_REQUEST['_multisort'];
//var_Dump($ms);exit;
$sorted = false;
if (method_exists($x, 'applySort')) {
//var_Dump($ms);exit;
$sorted = false;
if (method_exists($x, 'applySort')) {