some minor error suppresants

This commit is contained in:
Sarjuuk
2015-05-26 23:10:16 +02:00
parent ebc7a9bee8
commit 03b90c438f
9 changed files with 37 additions and 31 deletions

View File

@@ -923,9 +923,9 @@ class NpcPage extends GenericPage
private function getQuotes()
{
$nQuotes = 0;
$quotes = [];
$quoteQuery = '
$nQuotes = 0;
$quotes = [];
$quoteSrc = DB::World()->select('
SELECT
ct.groupid AS ARRAY_KEY, ct.id as ARRAY_KEY2, ct.`type`,
ct.TextRange AS `range`,
@@ -944,9 +944,11 @@ class NpcPage extends GenericPage
LEFT JOIN
locales_broadcast_text lbct ON ct.BroadcastTextId = lbct.ID
WHERE
ct.entry = ?d';
ct.entry = ?d',
$this->typeId
);
foreach (DB::World()->select($quoteQuery, $this->typeId) as $text)
foreach ($quoteSrc as $text)
{
$group = [];
foreach ($text as $t)