diff --git a/lib/app.php b/lib/app.php index 8ee128f..06f45b6 100755 --- a/lib/app.php +++ b/lib/app.php @@ -783,8 +783,9 @@ public static function renderSingleCardParameter($aCon,$Name,$depth=1,$pref=0,$b foreach($aCon[$Name] as $Info){ $sReturnTypeOutput=''; - - if((array_key_exists('TYPE',$Info['parameters']) || array_key_exists('X-SERVICE-TYPE',$Info['parameters'])) && array_key_exists('PREF',$Info['parameters'])){ + + if((array_key_exists('TYPE',$Info['parameters']) || array_key_exists('X-SERVICE-TYPE',$Info['parameters'])) + && ((array_key_exists('PREF',$Info['parameters'])) || count($aCon[$Name]) == 1)){ //\OCP\Util::writeLog(self::$appname,'Tel PREF: '.$Info['parameters']['PREF'], \OCP\Util::DEBUG); if(array_key_exists('TYPE',$Info['parameters'])){ foreach($Info['parameters']['TYPE'] as $TypeInfo){