|
|
@@ -10,7 +10,7 @@ class maj {
|
|
|
return file_get_contents(DIR_MAJ . "sql/maj.sql");
|
|
|
}
|
|
|
|
|
|
- public static function query(string $query = NULL){
|
|
|
+ public static function query(?string $query = NULL){
|
|
|
if($query != NULL){
|
|
|
db::query($query);
|
|
|
try {
|
|
|
@@ -31,7 +31,7 @@ class maj {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static function print(string $_string, string $_color = NULL){
|
|
|
+ public static function print(string $_string, ?string $_color = NULL){
|
|
|
if($_color == NULL){
|
|
|
echo "<div>" . $_string . "</div>";
|
|
|
} else {
|