some code restructure

This commit is contained in:
marijus
2015-01-23 14:50:39 +01:00
parent e874376268
commit 8789c96e78
3 changed files with 59 additions and 46 deletions

View File

@@ -48,9 +48,9 @@ function sharedwithme_content(&$a) {
else {
$z = q("DELETE FROM item WHERE (obj_type = '%s' AND object LIKE '%s') AND (verb = '%s' OR verb = '%s')",
$z = q("DELETE FROM item WHERE (obj_type = '%s' AND object = '%s') AND (verb = '%s' OR verb = '%s')",
dbesc(ACTIVITY_OBJ_FILE),
dbesc('%"hash":"' . $hash . '"%'),
dbesc($xx['object']),
dbesc(ACTIVITY_POST),
dbesc(ACTIVITY_UPDATE)
);