From 9bedb38621c567908cff21bed33ab2324c573a61 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 15 Jan 2015 20:59:26 -0800 Subject: validate poco chatrooms before storing --- include/socgraph.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/socgraph.php') diff --git a/include/socgraph.php b/include/socgraph.php index dbc25f9c1..0cdf43ec7 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -72,6 +72,9 @@ function poco_load($xchan = '',$url = null) { if($xchan) { if(array_key_exists('chatrooms',$j) && is_array($j['chatrooms'])) { foreach($j['chatrooms'] as $room) { + if((! $room['url']) || (! $room['desc'])) + continue; + $r = q("select * from xchat where xchat_url = '%s' and xchat_xchan = '%s' limit 1", dbesc($room['url']), dbesc($xchan) -- cgit v1.2.3