1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

PHp Notices

This commit is contained in:
Cameron
2016-02-16 11:10:30 -08:00
parent 67358e6f9a
commit 39bae789f8
3 changed files with 15 additions and 6 deletions

View File

@@ -309,7 +309,7 @@ class eFront
{
if(null !== $status)
{
if($status[0] === '{')
if(!empty($status[0]) && ($status[0] === '{'))
{
$status = e107::getParser()->replaceConstants($status);
}
@@ -3585,9 +3585,17 @@ class eRequest
{
$qstring = self::getQueryString();
}
define("e_SELF", e_REQUEST_SELF);
define("e_QUERY", $qstring);
if(!defined('e_SELF'))
{
define("e_SELF", e_REQUEST_SELF);
}
if(!defined('e_QUERY'))
{
define("e_QUERY", $qstring);
}
$_SERVER['QUERY_STRING'] = e_QUERY;
if(strpos(e_QUERY,"=")!==false ) // Fix for legacyQuery using $_GET ie. ?x=y&z=1 etc.

View File

@@ -622,7 +622,8 @@ class e_db_mysql
{
return null;
}
return array_shift($this->fetch());
$rows = $this->fetch();
return array_shift($rows);
break;
case 'one':

View File

@@ -158,7 +158,7 @@ class gallery_shortcodes extends e_shortcode
// we passs both fields, the router will convert one of them to 'cat' variable, based on the current URL config
$url = 'route::gallery/index/list?media_cat_category='.$this->curCat.'--AMP--media_cat_sef='.$this->var['media_cat_sef'].'--AMP--frm=--FROM--::full=1';
$parm = 'total='.$this->total.'&amount='.$this->amount.'&current='.$this->from.'&url='.rawurlencode($url); // .'&url='.$url;
$text .= e107::getParser()->parseTemplate("{NEXTPREV=".$parm."}");
$text = e107::getParser()->parseTemplate("{NEXTPREV=".$parm."}");
return $text;
}