mirror of
https://github.com/e107inc/e107.git
synced 2025-08-17 20:01:47 +02:00
Shortcode parser: fixed number of errors, more major changes, getScBatch will now auto-register batch (no need of registerShortcode() call), added new example of sc handler usage (news), work in progress
This commit is contained in:
@@ -2131,6 +2131,16 @@ class e_vars
|
||||
{
|
||||
return empty($this->vars);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if given data key is set
|
||||
* @param string $key
|
||||
* @return boolean
|
||||
*/
|
||||
public function isVar($key)
|
||||
{
|
||||
return isset($this->vars[$key]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic setter
|
||||
@@ -2171,7 +2181,7 @@ class e_vars
|
||||
*/
|
||||
public function __isset($key)
|
||||
{
|
||||
return isset($this->vars[$key]);
|
||||
return $this->isVar($key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user