Merge pull request #604 from fermionic/20130204-db-debugging-in-mod-display

take debugging commands out of mod/display
This commit is contained in:
friendica 2013-02-05 17:22:05 -08:00
commit 34c9156fa1

View file

@ -122,7 +122,6 @@ function display_content(&$a, $update = 0) {
if($update) { if($update) {
dbg(1);
$r = q("SELECT id FROM item WHERE item.uid = %d $r = q("SELECT id FROM item WHERE item.uid = %d
AND `item`.`parent` = ( SELECT `parent` FROM `item` WHERE ( `id` = '%s' OR `uri` = '%s' )) AND `item`.`parent` = ( SELECT `parent` FROM `item` WHERE ( `id` = '%s' OR `uri` = '%s' ))
$sql_extra AND unseen = 1", $sql_extra AND unseen = 1",
@ -130,7 +129,7 @@ dbg(1);
dbesc($item_id), dbesc($item_id),
dbesc($item_id) dbesc($item_id)
); );
dbg(0);
if(!$r) if(!$r)
return ''; return '';
} }