mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Fix TypeError when empty module_srl is passed to BoardModel::getDefaultListConfig()
This commit is contained in:
parent
c4fabb6182
commit
a6e20a5d23
1 changed files with 3 additions and 0 deletions
|
|
@ -56,6 +56,9 @@ class BoardModel extends Board
|
||||||
**/
|
**/
|
||||||
public static function getDefaultListConfig($module_srl)
|
public static function getDefaultListConfig($module_srl)
|
||||||
{
|
{
|
||||||
|
$extra_vars = [];
|
||||||
|
$module_srl = (int)$module_srl;
|
||||||
|
|
||||||
// add virtual srl, title, registered date, update date, nickname, ID, name, readed count, voted count etc.
|
// add virtual srl, title, registered date, update date, nickname, ID, name, readed count, voted count etc.
|
||||||
$virtual_vars = array( 'no', 'title', 'regdate', 'last_update', 'last_post', 'module_title', 'nick_name',
|
$virtual_vars = array( 'no', 'title', 'regdate', 'last_update', 'last_post', 'module_title', 'nick_name',
|
||||||
'user_id', 'user_name', 'readed_count', 'voted_count', 'blamed_count', 'comment_count',
|
'user_id', 'user_name', 'readed_count', 'voted_count', 'blamed_count', 'comment_count',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue