Only variables should be passed by reference問題,如何解決?

Strict Standards: Only variables should be passed by reference in /home/taiwancmh/public_html/products/index.php on line 115

line 115:
$dep_arr = get_department_child($CFG->this_table4, ntb($frm));
使用的function:
function get_department_child(&$table = 'hr_department', &$dep, &$value = array()) {
global $CFG;

$sql = "SELECT * FROM ".$CFG->table_prefix.$table." WHERE id != '1' AND available = '1' AND cid = '$dep' ";
$rs = db_query($sql);
$rs2 = db_query($sql);
$total = db_num_rows($rs);
if ($total > 0) {
while ($row = db_fetch_object($rs)) {
$value[$row->id] = "'".$row->id."'";
//判斷是否有下一層
$check_tree = DoubCheck("$table"," cid = '$row->id' ");
if ($check_tree > 0) {
get_department_child($table, $row->id, $value);
}
}
}
return $value;
}

麻煩告知如何解決,謝謝
Sign In or Register to comment.