Moved $mastodons definition upper
This commit is contained in:
parent
1c524ffd69
commit
732ea79480
1 changed files with 7 additions and 7 deletions
|
@ -199,6 +199,13 @@ catch (Exception $error) { mexit('could not set «utf8mb4» charset for MySQL: '
|
|||
// for php versions < 8
|
||||
if ($res===false) mexit('could not set MySQL charset: '.mysqli_errno($link).': '.mysqli_error($link).'.'.N,1,true);
|
||||
|
||||
$mastodons=[];
|
||||
$res=myq($link,'SELECT Name FROM Platforms WHERE Consider=1',__LINE__);
|
||||
while ($row=mysqli_fetch_assoc($res))
|
||||
$mastodons[]=preg_quote($row['Name'],'/');
|
||||
if (count($mastodons)<1) mexit('in table «Platforms», there is no platform to be considered!'.N,1);
|
||||
$mastodons=implode('|',$mastodons);
|
||||
|
||||
$tables=tables($link);
|
||||
//print_r($tables);
|
||||
|
||||
|
@ -208,13 +215,6 @@ if ($opts['logminmsglev']<4) {
|
|||
if ($logf===false) mexit('could not open file «'.$logfp.'» in write mode.'.N,1);
|
||||
}
|
||||
|
||||
$mastodons=[];
|
||||
$res=myq($link,'SELECT Name FROM Platforms WHERE Consider=1',__LINE__);
|
||||
while ($row=mysqli_fetch_assoc($res))
|
||||
$mastodons[]=preg_quote($row['Name'],'/');
|
||||
if (count($mastodons)<1) mexit('in table «Platforms», there is no platform to be considered!'.N,1);
|
||||
$mastodons=implode('|',$mastodons);
|
||||
|
||||
$instints=['ID', 'FirstSeen', 'IsMastodon', 'Dead', 'Priority', 'Visible', 'Noxious', 'NoxLastModTS', 'LocalityID', 'OurLangsLock', 'UserCount', 'StatusCount', 'DomainCount', 'ActiveUsersMonth', 'ActiveUsersHalfYear', 'RegOpen', 'RegReqApproval', 'MaxTootChars', 'AdmCreatedAt', 'LastCheckOk', 'GuestID', 'LastGuestEdit', 'InsertTS', 'RPos'];
|
||||
|
||||
$idata=[];
|
||||
|
|
Loading…
Reference in a new issue