From 2583cab469561cc910001196fbbbbafc5c1920ef Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 24 Apr 2015 14:14:33 +0200 Subject: add title to element array --- mod/layouts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/layouts.php') diff --git a/mod/layouts.php b/mod/layouts.php index f11554364..57300777a 100644 --- a/mod/layouts.php +++ b/mod/layouts.php @@ -132,7 +132,7 @@ function layouts_content(&$a) { $editor = status_editor($a,$x); - $r = q("select iid, sid, mid, body, created, edited from item_id left join item on item_id.iid = item.id + $r = q("select iid, sid, mid, title, body, mimetype, created, edited from item_id left join item on item_id.iid = item.id where item_id.uid = %d and service = 'PDL' order by item.created desc", intval($owner) ); @@ -144,6 +144,7 @@ function layouts_content(&$a) { foreach($r as $rr) { $element_arr = array( 'type' => 'layout', + 'title' => $rr['title'], 'body' => $rr['body'], 'created' => $rr['created'], 'edited' => $rr['edited'], -- cgit v1.2.3