Update gnuboard.dbt.php
This commit is contained in:
parent
a9792b974a
commit
cae9a0e9fd
|
@ -26,7 +26,7 @@ if(!function_exists("gnb_get_write_table")) {
|
||||||
if(!function_exists("gnb_get_write_next")) {
|
if(!function_exists("gnb_get_write_next")) {
|
||||||
function gnb_get_write_next($tablename) {
|
function gnb_get_write_next($tablename) {
|
||||||
$row = exec_db_fetch("select min(wr_num) as min_wr_num from " . gnb_get_write_table($tablename));
|
$row = exec_db_fetch("select min(wr_num) as min_wr_num from " . gnb_get_write_table($tablename));
|
||||||
return (int)($row['min_wr_num'] - 1);
|
return (intval(get_value_in_array("min_wr_num", $row)) - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user