aboutsummaryrefslogtreecommitdiffstats
path: root/mod/tasks.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-20 18:43:01 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-20 18:43:01 -0700
commitafbbc9cd72e48a9eb4fb035eb01cd6e742d0088e (patch)
tree7b059c8ae935238f472fb02aa859a020bd08499f /mod/tasks.php
parent05bec13bdc59713c89f0545d3a2955d886969dba (diff)
downloadvolse-hubzilla-afbbc9cd72e48a9eb4fb035eb01cd6e742d0088e.tar.gz
volse-hubzilla-afbbc9cd72e48a9eb4fb035eb01cd6e742d0088e.tar.bz2
volse-hubzilla-afbbc9cd72e48a9eb4fb035eb01cd6e742d0088e.zip
more work on tasks
Diffstat (limited to 'mod/tasks.php')
-rw-r--r--mod/tasks.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/mod/tasks.php b/mod/tasks.php
index 8220b9962..869d9b3cd 100644
--- a/mod/tasks.php
+++ b/mod/tasks.php
@@ -75,18 +75,22 @@ function tasks_content(&$a) {
$sql_extra = " and event_status != 'COMPLETED' ";
if(argc() > 1 && argv(1) === 'all')
$sql_extra = '';
-
-
+dbg(1);
$r = q("select * from event where type = 'task' and uid = %d $sql_extra ",
intval(local_channel())
);
+dbg(0);
$ret['success'] = (($r) ? true : false);
if($r) {
$ret['tasks'] = $r;
}
-
- json_return_and_die($r);
+
+// return $ret;
+
+ return json_encode($ret);
+
+// json_return_and_die($ret);