diff options
Diffstat (limited to 'mod/connedit.php')
-rw-r--r-- | mod/connedit.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/connedit.php b/mod/connedit.php index 58366da6d..2c4c0cef8 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -574,12 +574,11 @@ function connedit_content(&$a) { $rating_val = 0; $rating_text = ''; -dbg(1); $xl = q("select * from xlink where xlink_xchan = '%s' and xlink_link = '%s' and xlink_static = 1", dbesc($channel['channel_hash']), dbesc($contact['xchan_hash']) ); -dbg(0); + if($xl) { $rating_val = intval($xl[0]['xlink_rating']); $rating_text = $xl[0]['xlink_rating_text']; |