diff options
author | friendica <info@friendica.com> | 2015-01-15 20:59:26 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-15 20:59:26 -0800 |
commit | 9bedb38621c567908cff21bed33ab2324c573a61 (patch) | |
tree | 7380cfcd2ee720ede0e19a67e595880a2a75f81a /include/socgraph.php | |
parent | ec4d3a2349f9e5c93272b7c7e935cb8089c27b8f (diff) | |
download | volse-hubzilla-9bedb38621c567908cff21bed33ab2324c573a61.tar.gz volse-hubzilla-9bedb38621c567908cff21bed33ab2324c573a61.tar.bz2 volse-hubzilla-9bedb38621c567908cff21bed33ab2324c573a61.zip |
validate poco chatrooms before storing
Diffstat (limited to 'include/socgraph.php')
-rw-r--r-- | include/socgraph.php | 3 |
1 files changed, 3 insertions, 0 deletions
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) |