[development] comment module: minor issue unreachable code

Hans Wolters hans at lonki.xs4all.nl
Tue Aug 21 18:48:51 UTC 2007


Hi there,

In the comment module there is some code that will never be reached:

function comment_nodeapi(&$node, $op, $arg = 0) {
   switch ($op) {
     case 'load':
       return db_fetch_array(db_query("SELECT......
       break;

The return will make it impossible to reach the break.

Regards,

Hans


More information about the development mailing list