forked from ZwiiCMS-Team/ZwiiCMS
param null
This commit is contained in:
parent
a4068fe934
commit
9db9708a9f
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
class blog extends common {
|
class blog extends common {
|
||||||
|
|
||||||
const VERSION = '6.1';
|
const VERSION = '6.2';
|
||||||
const REALNAME = 'Blog';
|
const REALNAME = 'Blog';
|
||||||
const DELETE = true;
|
const DELETE = true;
|
||||||
const UPDATE = '0.0';
|
const UPDATE = '0.0';
|
||||||
@ -124,6 +124,10 @@ class blog extends common {
|
|||||||
* Appelée par les fonctions index et config
|
* Appelée par les fonctions index et config
|
||||||
*/
|
*/
|
||||||
private function update() {
|
private function update() {
|
||||||
|
// Eviter valeur null
|
||||||
|
if (is_null($this->getData(['module', $this->getUrl(0), 'config', 'versionData'])) ){
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Initialisation
|
// Initialisation
|
||||||
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '0.0', '<') ) {
|
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '0.0', '<') ) {
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'feeds', true]);
|
$this->setData(['module', $this->getUrl(0), 'config', 'feeds', true]);
|
||||||
|
Loading…
Reference in New Issue
Block a user