changeset 315 | f49e3c8b638c |
parent 286 | b2f985e4cef3 |
child 317 | f8356d9c3481 |
312:6c7060d36a23 | 315:f49e3c8b638c |
---|---|
597 default: |
597 default: |
598 $good = false; |
598 $good = false; |
599 $code = $plugins->setHook('userprefs_body'); |
599 $code = $plugins->setHook('userprefs_body'); |
600 foreach ( $code as $cmd ) |
600 foreach ( $code as $cmd ) |
601 { |
601 { |
602 if ( eval($code) ) |
602 if ( eval($cmd) ) |
603 $good = true; |
603 $good = true; |
604 } |
604 } |
605 if ( !$good ) |
605 if ( !$good ) |
606 { |
606 { |
607 echo '<h3>Invalid module</h3> |
607 echo '<h3>Invalid module</h3> |