mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
UtilityPage/Random
* fix invalid type error * simplyfy query building (there are no longer tables with an index named `entry`)
This commit is contained in:
@@ -72,7 +72,7 @@ class UtilityPage extends GenericPage
|
||||
{
|
||||
case 'random':
|
||||
$type = array_rand(Type::getClassesFor(Type::FLAG_RANDOM_SEARCHABLE));
|
||||
$typeId = (Type::newList($type, null))?->getRandomId();
|
||||
$typeId = (Type::newList($type))?->getRandomId();
|
||||
|
||||
header('Location: ?'.Type::getFileString($type).'='.$typeId, true, 302);
|
||||
die();
|
||||
|
||||
Reference in New Issue
Block a user