aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-02-03 17:25:10 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-02-03 17:25:10 +0100
commitc15c550a065add37cde0096dd495dd6c2731eb1b (patch)
treed085e1b95233a075d467bab9d291550fcb37d2bc
parentbed0391e6fb058c9f1165e40cdac552f2819808b (diff)
downloadvolse-hubzilla-c15c550a065add37cde0096dd495dd6c2731eb1b.tar.gz
volse-hubzilla-c15c550a065add37cde0096dd495dd6c2731eb1b.tar.bz2
volse-hubzilla-c15c550a065add37cde0096dd495dd6c2731eb1b.zip
Fix tabs
-rw-r--r--mod/lockview.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/mod/lockview.php b/mod/lockview.php
index a99628b6e..93baede9d 100644
--- a/mod/lockview.php
+++ b/mod/lockview.php
@@ -4,21 +4,21 @@
function lockview_content(&$a) {
$type = (($a->argc > 1) ? $a->argv[1] : 0);
- if (is_numeric($type)) {
- $item_id = intval($type);
- $type='item';
- } else {
- $item_id = (($a->argc > 2) ? intval($a->argv[2]) : 0);
- }
+ if (is_numeric($type)) {
+ $item_id = intval($type);
+ $type='item';
+ } else {
+ $item_id = (($a->argc > 2) ? intval($a->argv[2]) : 0);
+ }
if(! $item_id)
killme();
- if (!in_array($type, array('item','photo','event')))
- killme();
+ if (!in_array($type, array('item','photo','event')))
+ killme();
$r = q("SELECT * FROM `%s` WHERE `id` = %d LIMIT 1",
- dbesc($type),
+ dbesc($type),
intval($item_id)
);
if(! count($r))
@@ -80,11 +80,11 @@ function lockview_content(&$a) {
}
- if (count($l)>0) {
- echo $o . implode(', ', $l);
- } else {
- echo $o . t('nobody');
- }
+ if (count($l)>0) {
+ echo $o . implode(', ', $l);
+ } else {
+ echo $o . t('nobody');
+ }
killme();
}