From c5a32b11f3f277b54dfb82efeb1cd3e19175e50d Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Mon, 27 Feb 2023 10:27:25 -0300 Subject: [PATCH] fix --- objects/category.php | 6 +++--- objects/comment.php | 6 +++--- objects/comments_like.php | 6 +++--- objects/configuration.php | 1 + objects/include_config.php | 1 + plugin/YPTWallet/Objects/Wallet.php | 4 ++-- vendor/symfony/config/Builder/ClassBuilder.php | 2 +- vendor/symfony/dependency-injection/Definition.php | 2 +- 8 files changed, 15 insertions(+), 13 deletions(-) diff --git a/objects/category.php b/objects/category.php index b753eb14b0..4a100439b3 100644 --- a/objects/category.php +++ b/objects/category.php @@ -10,7 +10,7 @@ require_once $global['systemRootPath'] . 'objects/user.php'; require_once $global['systemRootPath'] . 'objects/video.php'; class Category { - private $properties = []; + protected $properties = []; private $id; private $name; @@ -106,8 +106,8 @@ class Category { return false; } foreach ($row as $key => $value) { - //$this->$key = $value; - $this->properties[$key] = $value; + @$this->$key = $value; + //$this->properties[$key] = $value; } return true; } diff --git a/objects/comment.php b/objects/comment.php index 353a60dcb1..654ee898c3 100644 --- a/objects/comment.php +++ b/objects/comment.php @@ -10,7 +10,7 @@ require_once $global['systemRootPath'] . 'objects/user.php'; require_once $global['systemRootPath'] . 'objects/video.php'; class Comment { - private $properties = []; + protected $properties = []; protected $id; protected $comment; @@ -69,8 +69,8 @@ class Comment { return false; } foreach ($row as $key => $value) { - //$this->$key = $value; - $this->properties[$key] = $value; + @$this->$key = $value; + //$this->properties[$key] = $value; } return true; } diff --git a/objects/comments_like.php b/objects/comments_like.php index 2ca232a93e..6e0c020a5f 100644 --- a/objects/comments_like.php +++ b/objects/comments_like.php @@ -9,7 +9,7 @@ require_once $global['systemRootPath'] . 'objects/user.php'; class CommentsLike { - private $properties = []; + protected $properties = []; private $id; private $like; private $comments_id; @@ -48,8 +48,8 @@ class CommentsLike return false; } foreach ($like as $key => $value) { - //$this->$key = $value; - $this->properties[$key] = $value; + @$this->$key = $value; + //$this->properties[$key] = $value; } } diff --git a/objects/configuration.php b/objects/configuration.php index 7fc28d9acb..817792201a 100644 --- a/objects/configuration.php +++ b/objects/configuration.php @@ -81,6 +81,7 @@ class Configuration extends ObjectYPT{ public function getVersion() { + var_dump($this->version, $this); if (empty($this->version)) { return " 0.1"; } diff --git a/objects/include_config.php b/objects/include_config.php index 4998b41e1a..cdb65701d9 100644 --- a/objects/include_config.php +++ b/objects/include_config.php @@ -102,6 +102,7 @@ $global['dont_show_us_flag'] = false; if (empty($doNotStartSessionbaseIncludeConfig)) { $config = new Configuration(); + //var_dump($config);exit; @session_write_close(); // server should keep session data for AT LEAST 1 hour diff --git a/plugin/YPTWallet/Objects/Wallet.php b/plugin/YPTWallet/Objects/Wallet.php index ee58eb3dfe..2e681b7ef5 100644 --- a/plugin/YPTWallet/Objects/Wallet.php +++ b/plugin/YPTWallet/Objects/Wallet.php @@ -60,8 +60,8 @@ class Wallet extends ObjectYPT { if (empty($row)) return false; foreach ($row as $key => $value) { - //$this->$key = $value; - $this->properties[$key] = $value; + @$this->$key = $value; + //$this->properties[$key] = $value; } return true; } diff --git a/vendor/symfony/config/Builder/ClassBuilder.php b/vendor/symfony/config/Builder/ClassBuilder.php index 9960d65080..d6de9e8fbe 100644 --- a/vendor/symfony/config/Builder/ClassBuilder.php +++ b/vendor/symfony/config/Builder/ClassBuilder.php @@ -27,7 +27,7 @@ class ClassBuilder private $name; /** @var Property[] */ - private $properties = []; + protected $properties = []; /** @var Method[] */ private $methods = []; diff --git a/vendor/symfony/dependency-injection/Definition.php b/vendor/symfony/dependency-injection/Definition.php index 7fc6752554..aa5f3217c7 100644 --- a/vendor/symfony/dependency-injection/Definition.php +++ b/vendor/symfony/dependency-injection/Definition.php @@ -29,7 +29,7 @@ class Definition private $factory; private $shared = true; private $deprecation = []; - private $properties = []; + protected $properties = []; private $calls = []; private $instanceof = []; private $autoconfigured = false;