From a37a05ff20d4ca6911c6b3722a5a89b7e94d0998 Mon Sep 17 00:00:00 2001 From: zottel Date: Wed, 2 Jul 2014 10:36:21 +0200 Subject: Fix for #510: $a->poi wasn't set for tabs actions with commands, so connedit_clone wasn't executed. --- mod/connedit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/connedit.php b/mod/connedit.php index 61bb62766..b9f0299e2 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -24,7 +24,7 @@ function connedit_init(&$a) { if(! local_user()) return; - if((argc() == 2) && intval(argv(1))) { + if((argc() >= 2) && intval(argv(1))) { $r = q("SELECT abook.*, xchan.* FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_channel = %d and abook_id = %d LIMIT 1", -- cgit v1.2.3