Browse Source

$this is a syntax error when using static classes (#5264)

Luis Daniel Lucio Quiroz 5 years ago
parent
commit
c93d27f860
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/software/resources/classes/software.php

+ 1 - 1
core/software/resources/classes/software.php

@@ -19,7 +19,7 @@ if (!class_exists('software')) {
 		 * numeric_version
 		 */
 		public static function numeric_version() {
-			$v = explode('.', $this->version());
+			$v = explode('.', software::version());
 			$n = ($v[0] * 10000 + $v[1] * 100 + $v[2]);
 			return $n;
 		}