A few quick fixes

This commit is contained in:
flash 2015-04-25 20:25:44 +00:00
parent 101da2fd24
commit 25cef9cbfb
2 changed files with 7 additions and 0 deletions

View file

@ -67,6 +67,7 @@ class Templates {
// Break line breaks up into array values // Break line breaks up into array values
$data = str_replace("\r\n", "\n", $data); $data = str_replace("\r\n", "\n", $data);
$data = str_replace("\r", "\n", $data);
$data = explode("\n", $data); $data = explode("\n", $data);
foreach($data as $var) { foreach($data as $var) {

View file

@ -695,6 +695,9 @@ class Users {
// Execute query // Execute query
$getUsers = Database::fetch('users', true); $getUsers = Database::fetch('users', true);
// Define variable
$users = [];
// Reorder shit // Reorder shit
foreach($getUsers as $user) { foreach($getUsers as $user) {
@ -717,6 +720,9 @@ class Users {
// Execute query // Execute query
$getRanks = Database::fetch('ranks', true); $getRanks = Database::fetch('ranks', true);
// Define variable
$ranks = [];
// Reorder shit // Reorder shit
foreach($getRanks as $rank) foreach($getRanks as $rank)
$ranks[$rank['id']] = $rank; $ranks[$rank['id']] = $rank;