diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc
index 7d516ab70879585ab604401e4a6622fab83c403c..953f106c311db49b99096d4b489e4fc5e91d85cb 100644 (file)
if(class_available("gosaSupportDaemon") && class_available("DaemonEvent")){
$o = new gosaSupportDaemon();
$e_types = DaemonEvent::get_event_types(USER_EVENT | SYSTEM_EVENT | HIDDEN_EVENT);
- $evts = $o->get_entries_by_mac(array($this->netConfigDNS->macAddress));
+ $evts = array();
+ if (tests::is_mac($this->netConfigDNS->macAddress)) {
+ $evts = $o->get_entries_by_mac(array($this->netConfigDNS->macAddress));
+ }
foreach($evts as $evt){
if(isset($e_types['QUEUED'][$evt['HEADERTAG']]) && $evt['STATUS'] == "processing" &&
$e_types['QUEUED'][$evt['HEADERTAG']] == "DaemonEvent_reinstall"){