diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-08-20 20:40:42 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-08-20 20:40:42 -0700 |
commit | 49c4aa1a546264fa39754ae8a7c08243a6896b04 (patch) | |
tree | c5dfd1e0a0b6587cefe29d7685eb4f5b96d3659a /include/event.php | |
parent | afbbc9cd72e48a9eb4fb035eb01cd6e742d0088e (diff) | |
download | volse-hubzilla-49c4aa1a546264fa39754ae8a7c08243a6896b04.tar.gz volse-hubzilla-49c4aa1a546264fa39754ae8a7c08243a6896b04.tar.bz2 volse-hubzilla-49c4aa1a546264fa39754ae8a7c08243a6896b04.zip |
cleanup of task widget - make jquery workflow a bit smoother
Diffstat (limited to 'include/event.php')
-rw-r--r-- | include/event.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/event.php b/include/event.php index fad852dfc..95a165fdc 100644 --- a/include/event.php +++ b/include/event.php @@ -927,10 +927,10 @@ function tasks_fetch($arr) { $ret = array(); $sql_extra = " and event_status != 'COMPLETED' "; - if(argc() > 1 && argv(1) === 'all') + if($arr && $arr['all'] == 1) $sql_extra = ''; - $r = q("select * from event where type = 'task' and uid = %d $sql_extra ", + $r = q("select * from event where type = 'task' and uid = %d $sql_extra order by created desc", intval(local_channel()) ); |