diff options
author | friendica <info@friendica.com> | 2012-11-03 06:32:27 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-11-03 06:32:27 -0700 |
commit | 7915e597ec6c4a8e3735556d59e730aa84f770a1 (patch) | |
tree | 858697d22dab2d74b3a6be295d4cbfb6089b16ad /include/contact_widgets.php | |
parent | 41a43f1282ee23db50c3c712bbd33aeb2b4d1867 (diff) | |
download | volse-hubzilla-7915e597ec6c4a8e3735556d59e730aa84f770a1.tar.gz volse-hubzilla-7915e597ec6c4a8e3735556d59e730aa84f770a1.tar.bz2 volse-hubzilla-7915e597ec6c4a8e3735556d59e730aa84f770a1.zip |
more theme stuff
Diffstat (limited to 'include/contact_widgets.php')
-rw-r--r-- | include/contact_widgets.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/contact_widgets.php b/include/contact_widgets.php index 11b087ac5..1230e2b24 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -86,10 +86,11 @@ function fileas_widget($baseurl,$selected = '') { intval(local_user()), intval(TERM_FILE) ); - if(count($r)) { - foreach($r as $rr) + if(! $r) + return; + + foreach($r as $rr) $terms[] = array('name' => $rr['term'], 'selected' => (($selected == $rr['term']) ? 'selected' : '')); - } return replace_macros(get_markup_template('fileas_widget.tpl'),array( '$title' => t('Saved Folders'), |