Fixes for php 8.2
This commit is contained in:
parent
29faed4b35
commit
6c4ca64e43
9 changed files with 36 additions and 8 deletions
|
|
@ -74,7 +74,7 @@ class Webmodel {
|
|||
* String where save the query if error.
|
||||
*/
|
||||
|
||||
static public $save_query=array();
|
||||
static public $save_query=0;
|
||||
|
||||
/**
|
||||
* Variable for the db prefix. For security, change this always.
|
||||
|
|
@ -486,7 +486,8 @@ class Webmodel {
|
|||
|
||||
Webmodel::$model[$name_model]=&$this;
|
||||
|
||||
Webmodel::$m->$name_model=&Webmodel::$model[$name_model];
|
||||
//Webmodel::$m->$name_model=&Webmodel::$model[$name_model];
|
||||
//Webmodel::$m->__set($name_model, Webmodel::$model[$name_model]);
|
||||
|
||||
Webmodel::$model_type[get_class($this)]=1;
|
||||
|
||||
|
|
@ -2616,13 +2617,18 @@ class Webmodel {
|
|||
}
|
||||
|
||||
//A simple shortcut for access to models
|
||||
|
||||
/*
|
||||
class SuperModel {
|
||||
|
||||
public function __set(string $name, mixed $value) {
|
||||
|
||||
echo $name;
|
||||
$this->{$name}=&$value;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Webmodel::$m=new SuperModel();
|
||||
Webmodel::$m=new SuperModel();*/
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue