Index: /changelog
===================================================================
--- /changelog	(revision 8200)
+++ /changelog	(revision 8206)
@@ -554,4 +554,5 @@
 - Feature: Bilder kÃ¶nnen an Produktgruppen angehÃ€ngt werden
 - Feature: standard3.phtml (Slider und Zoom)
+- Feature: PHP 8.2 kompatibilitÃ€t
 - Bugfix: ProduktgruppenÃŒbersichtsseite funktioniert ohne Lagerbestand
 - Bugfix: user_views Templates werden aus dem Child-Theme geladen
Index: /controller/wpsg_SystemController.class.php
===================================================================
--- /controller/wpsg_SystemController.class.php	(revision 8200)
+++ /controller/wpsg_SystemController.class.php	(revision 8206)
@@ -28,4 +28,8 @@
 
 		var $api_broken = false;
+
+        public $view = [];
+
+        public $arAllModule = [];
 		
 		/**
Index: /lib/functions.inc.php
===================================================================
--- /lib/functions.inc.php	(revision 8200)
+++ /lib/functions.inc.php	(revision 8206)
@@ -1360,5 +1360,5 @@
 		
 		// Alles auÃer Zahlen, Punkt und Komma entfernen
-		$value = preg_replace('/[^\d|^\.|^\,|^\-]/', '', $value);
+		$value = preg_replace('/[^\d|^\.|^\,|^\-]/', '', ($value??''));
 				
 		if (strpos($value, ".") && strpos($value, ","))
Index: /lib/wpsg_imagehandler.class.php
===================================================================
--- /lib/wpsg_imagehandler.class.php	(revision 8200)
+++ /lib/wpsg_imagehandler.class.php	(revision 8206)
@@ -16,4 +16,7 @@
         /** @var wpsg_ShopController */
         private $shop = null;
+
+        /** @var wpsg_db */
+        public $db = null;
         
         public function __construct()
@@ -140,5 +143,5 @@
 			$postids = $this->db->fetchOne("SELECT `postids` FROM `".WPSG_TBL_PRODUCTS."` WHERE `id` = '".wpsg_q($product_id)."' ");
 
-			if (strpos($postids, ',') !== false) {
+			if (strpos(($postids??''), ',') !== false) {
 				
 				$arPostIDsOrder = explode(',', $postids);
Index: /mods/mod_deliverynote/wpsg_deliverynote.class.php
===================================================================
--- /mods/mod_deliverynote/wpsg_deliverynote.class.php	(revision 8200)
+++ /mods/mod_deliverynote/wpsg_deliverynote.class.php	(revision 8206)
@@ -6,7 +6,6 @@
 	 *
 	 */
-	class wpsg_deliverynote extends wpsg_model 
-	{
-		
+	class wpsg_deliverynote extends wpsg_model {
+
 		/**
 		 * LÃ€dt die Daten des Lieferscheins
Index: /mods/mod_statistics/wpsg_turnover.class.php
===================================================================
--- /mods/mod_statistics/wpsg_turnover.class.php	(revision 8200)
+++ /mods/mod_statistics/wpsg_turnover.class.php	(revision 8206)
@@ -28,5 +28,5 @@
 				$this->getSqlWhere('validOrder')
 			;
-			 echo $strQuery;
+
 			$arData = $this->db->fetchRow($strQuery);
 			
Index: /mods/wpsg_mod_basic.class.php
===================================================================
--- /mods/wpsg_mod_basic.class.php	(revision 8200)
+++ /mods/wpsg_mod_basic.class.php	(revision 8206)
@@ -4,7 +4,18 @@
 	 * Basisklasse fÃŒr die Module
 	 */
-	class wpsg_mod_basic 
-	{
-		
+	class wpsg_mod_basic {
+
+        /** @var string $name */
+        public $name = '';
+
+        /** @var string $group */
+        public $group = '';
+
+        /** @var string $desc */
+        public $desc = '';
+
+        /** @var wpsg_db $db */
+        public $db = null;
+
 		/** Der Lizenzlevel des Moduls */
 		var $lizenz = 0;
@@ -118,5 +129,5 @@
 			$this->shop = $GLOBALS['wpsg_sc'];
 			$this->db = $GLOBALS['wpsg_db'];
-			
+
 		} // public function __construct() 
 		
Index: /mods/wpsg_mod_deliverynote.class.php
===================================================================
--- /mods/wpsg_mod_deliverynote.class.php	(revision 8200)
+++ /mods/wpsg_mod_deliverynote.class.php	(revision 8206)
@@ -5,7 +5,9 @@
 	 * @author Daschmi
 	 */
-	class wpsg_mod_deliverynote extends wpsg_mod_basic
-	{
-		
+	class wpsg_mod_deliverynote extends wpsg_mod_basic {
+
+        /** @var array $arTypen */
+        public $fields = [];
+
 		var $lizenz = 1;
 		var $id = 2000;
Index: /mods/wpsg_mod_ordervars.class.php
===================================================================
--- /mods/wpsg_mod_ordervars.class.php	(revision 8200)
+++ /mods/wpsg_mod_ordervars.class.php	(revision 8206)
@@ -5,7 +5,9 @@
 	 * @author daschmi (daniel@maennchen1.de)
 	 */
-	class wpsg_mod_ordervars extends wpsg_mod_basic
-	{
-		
+	class wpsg_mod_ordervars extends wpsg_mod_basic {
+
+        /** @var array $arTypen */
+        public $arTypen = [];
+
 		var $lizenz = 1;
 		var $id = 950;
Index: /mods/wpsg_mod_productvars.class.php
===================================================================
--- /mods/wpsg_mod_productvars.class.php	(revision 8200)
+++ /mods/wpsg_mod_productvars.class.php	(revision 8206)
@@ -6,6 +6,8 @@
 	 *
 	 */
-	class wpsg_mod_productvars extends wpsg_mod_basic
-	{
+	class wpsg_mod_productvars extends wpsg_mod_basic {
+
+        /** @var array $arTypen */
+        public $arTypen = [];
 
 		var $lizenz = 1;
Index: /mods/wpsg_mod_produktattribute.class.php
===================================================================
--- /mods/wpsg_mod_produktattribute.class.php	(revision 8200)
+++ /mods/wpsg_mod_produktattribute.class.php	(revision 8206)
@@ -7,6 +7,8 @@
 	 * Diese kÃ¶nnen dann im Produkttemplate angezeigt werden
 	 */
-	class wpsg_mod_produktattribute extends wpsg_mod_basic
-	{
+	class wpsg_mod_produktattribute extends wpsg_mod_basic {
+
+        /** @var array $arTypen */
+        public $arTypen = [];
 
 		var $id = 85;
Index: /mods/wpsg_mod_rechnungen.class.php
===================================================================
--- /mods/wpsg_mod_rechnungen.class.php	(revision 8200)
+++ /mods/wpsg_mod_rechnungen.class.php	(revision 8206)
@@ -5,5 +5,7 @@
 	 */
 	class wpsg_mod_rechnungen extends wpsg_mod_basic {
-		
+
+        public $fields = [];
+
 		var $lizenz = 1;
 		var $id = 1400;		
Index: /mods/wpsg_mod_statistics.class.php
===================================================================
--- /mods/wpsg_mod_statistics.class.php	(revision 8200)
+++ /mods/wpsg_mod_statistics.class.php	(revision 8206)
@@ -4,7 +4,8 @@
 	 * Modul fÃŒr Erzeugung von Statistiken in der Admin-Widget-Area
 	 */
-	class wpsg_mod_statistics extends wpsg_mod_basic 
-	{
-		
+	class wpsg_mod_statistics extends wpsg_mod_basic {
+
+        public $topProductCount = null;
+
 		var $lizenz = 1;
 		var $id = 440;
@@ -623,5 +624,5 @@
 					$s = wpsg_getStr($this->shop->view['filter']['sort']);
 					
-					if (isset($this->shop->view['standardFilter'][$this->shop->view['filter']['related']]) && isset($this->shop->view['standardFilter'][$this->shop->view['filter']['standard']])) {
+					if (isset($this->shop->view['standardFilter'][$this->shop->view['filter']['related']??'']) && isset($this->shop->view['standardFilter'][$this->shop->view['filter']['standard']])) {
 
 						if (!isset($this->shop->view['standardFilter'][$this->shop->view['filter']['related']]['point'])) wpsg_debug("FAIL");
@@ -632,8 +633,8 @@
 					}
 					
-					if (!is_numeric($p)) $p = 0;
+					if (!is_numeric($p??'')) $p = 0;
 					
 					//wpsg_debug(get_class($objchartClass).":".$chartFunction);
-					$this->shop->view['chart']['data'] = $objchartClass->$chartFunction($p, array('relatedpoint' => $r, 'order' => $o, 'sort' => $s));
+					$this->shop->view['chart']['data'] = $objchartClass->$chartFunction($p, array('relatedpoint' => $r??0, 'order' => $o, 'sort' => $s));
 					//$this->shop->view['chart']['info'] = $this->shop->view['charts'][$_REQUEST['id']]['type'][$_REQUEST['type']];
 										
Index: /wpshopgermany.php
===================================================================
--- /wpshopgermany.php	(revision 8200)
+++ /wpshopgermany.php	(revision 8206)
@@ -11,5 +11,5 @@
 	Author URI: http://maennchen1.de/
 	*/
-	
+
     define('WPSG_VERSION', '9.9.9');
 
