Skip to content

Commit

Permalink
fixing default value for "lastip"
Browse files Browse the repository at this point in the history
  • Loading branch information
NB-Core committed Jul 23, 2019
1 parent 598b7b8 commit 0a8a1f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/all_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function get_all_tables(){
'name'=>'gentimecount', 'type'=>'int(11) unsigned', 'default'=>'0'
),
'lastip'=>array(
'name'=>'lastip', 'type'=>'varchar(40)'
'name'=>'lastip', 'type'=>'varchar(40)', 'default'=>''
),
'uniqueid'=>array(
'name'=>'uniqueid', 'type'=>'varchar(32)', 'null'=>'1'
Expand Down Expand Up @@ -636,7 +636,7 @@ function get_all_tables(){
'name'=>'descauthor', 'type'=>'int(11) unsigned', 'default'=>'0'
),
'customsay'=>array(
'name'=>'customsay', 'type'=>'varchar(15)'
'name'=>'customsay', 'type'=>'varchar(15)', 'default'=>''
),
'key-PRIMARY'=>array(
'name'=>'PRIMARY',
Expand Down
1 change: 1 addition & 0 deletions modules/charrestore.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ function charrestore_run(){
//sanity fill ups due to empty values and no default values set
$default_fill = array(
"allowednavs",
"lastip",
);
foreach ($default_fill as $defval) {
if (!in_array($defval,$user['account'])) {
Expand Down

0 comments on commit 0a8a1f2

Please sign in to comment.