fix find_all => find

This commit is contained in:
Isaac Connor 2018-09-11 14:31:03 -04:00
parent 684f48979a
commit eef928a742
1 changed files with 2 additions and 2 deletions

View File

@ -119,11 +119,11 @@ echo " };\n";
} // end if initialmodeislive } // end if initialmodeislive
echo "var Storage = [];\n"; echo "var Storage = [];\n";
foreach ( Storage::find_all() as $Storage ) { foreach ( Storage::find() as $Storage ) {
echo 'Storage[' . $Storage->Id() . '] = ' . json_encode($Storage). ";\n"; echo 'Storage[' . $Storage->Id() . '] = ' . json_encode($Storage). ";\n";
} }
echo "\nvar Servers = [];\n"; echo "\nvar Servers = [];\n";
foreach ( Server::find_all() as $Server ) { foreach ( Server::find() as $Server ) {
echo 'Servers[' . $Server->Id() . '] = ' . json_encode($Server). ";\n"; echo 'Servers[' . $Server->Id() . '] = ' . json_encode($Server). ";\n";
} }
echo ' echo '