fix error viewing svc_broadband services, RT#23181, fallout from svc_cable, RT#22009
[freeside.git] / httemplate / view / elements / svc_devices.html
index 745eabd..9458c92 100644 (file)
@@ -94,6 +94,7 @@ if ( $table eq 'phone_device' || $table eq 'cable_device' ) {
 }
 
 my @devices = $svc_x->isa('FS::device_Common') ? $svc_x->device_objects()
-                                               : $svc_x->$table();
+                                               : $table ? $svc_x->$table()
+                                                        : ();
 
 </%init>