/** * @return bool */ function hasNeedUpdate() { $info =& $this->getInfo(); return $this->getVar('version') < Legacy_Utils::convertVersionFromModinfoToInt($info['version']); }
/** * @return bool */ public function hasNeedUpdate() { if (empty($this->modinfo)) { return false; } else { return $this->getVar('version') != Legacy_Utils::convertVersionFromModinfoToInt($this->modinfo['version']); } }