]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Extended profile - don't show rel for empty phone number
authorZach Copley <zach@status.net>
Wed, 16 Mar 2011 21:52:42 +0000 (14:52 -0700)
committerZach Copley <zach@status.net>
Wed, 16 Mar 2011 21:52:42 +0000 (14:52 -0700)
plugins/ExtendedProfile/extendedprofilewidget.php

index b507713f06c2fcfd65a730dac4f42d73c5a69824..53cb5d3b8752cc11535745f392689c4c5b3d273e 100644 (file)
@@ -160,9 +160,11 @@ class ExtendedProfileWidget extends Form
     protected function showPhone($name, $field)
     {
         $this->out->elementStart('div', array('class' => 'phone-display'));
-        $this->out->text($field['value']);
-        if (!empty($field['rel'])) {
-            $this->out->text(' (' . $field['rel'] . ')');
+        if (!empty($field['value'])) {
+            $this->out->text($field['value']);
+            if (!empty($field['rel'])) {
+               $this->out->text(' (' . $field['rel'] . ')');
+            }
         }
         $this->out->elementEnd('div');
     }