Skip to content
Permalink
Browse files

fixing default value for "lastip"

  • Loading branch information...
NB-Core committed Jul 23, 2019
1 parent 598b7b8 commit 0a8a1f2ddab19a8a0b199ea1c7ca6c8a96ec3c75
Showing with 3 additions and 2 deletions.
  1. +2 −2 lib/all_tables.php
  2. +1 −0 modules/charrestore.php
@@ -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'
@@ -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',
@@ -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'])) {

0 comments on commit 0a8a1f2

Please sign in to comment.
You can’t perform that action at this time.