Misc/Errors

* fixes some notices from log
 * fixed error when handling cookies
This commit is contained in:
Sarjuuk
2017-04-29 19:48:52 +02:00
parent 12b9e3fa89
commit 8248dad50a
4 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ class AjaxCookie extends AjaxHandler
return;
$this->_get = array(
this->params[0] => [FILTER_SANITIZE_STRING, 0xC], // FILTER_FLAG_STRIP_LOW | *_HIGH
$this->params[0] => [FILTER_SANITIZE_STRING, 0xC], // FILTER_FLAG_STRIP_LOW | *_HIGH
);
// NOW we know, what to expect and sanitize

View File

@@ -713,7 +713,7 @@ trait spawnHelper
public function getSpawns($mode)
{
// only Creatures, GOs and SoundEmitters can be spawned
if (!self::$type || (self::$type != TYPE_NPC && self::$type != TYPE_OBJECT && self::$type != TYPE_SOUND))
if (!self::$type || !$this->getfoundIDs() || (self::$type != TYPE_NPC && self::$type != TYPE_OBJECT && self::$type != TYPE_SOUND))
return [];
switch ($mode)

View File

@@ -54,7 +54,7 @@ class CurrencyPage extends GenericPage
/* Infobox */
/**********/
$infobox = Lang::getInfoBoxForFlags($this->subject->getField('cuFlags'));
$infobox = Lang::getInfoBoxForFlags(intval($this->subject->getField('cuFlags')));
if ($_ = $this->subject->getField('cap'))
$infobox[] = Lang::currency('cap').Lang::main('colon').Lang::nf($_);

View File

@@ -44,7 +44,7 @@ if (!empty($this->transfer)):
echo " <div class=\"pad\"></div>\n ".$this->transfer."\n";
endif;
if ($this->zoneMusic):
if (!empty($this->zoneMusic)):
?>
<div class="clear">
<?php