Эх сурвалжийг харах

Merge remote-tracking branch 'origin/master'

idleman 2 жил өмнө
parent
commit
74ebe418d5
2 өөрчлөгдсөн 6 нэмэгдсэн , 5 устгасан
  1. 1 0
      function.php
  2. 5 5
      install.php

+ 1 - 0
function.php

@@ -37,6 +37,7 @@ function unhandledException($ex){
 
 	switch($source){
 		case 'ui':
+			$response = '';
 			//Récuperation de la requete échouée si l'utilisateur n'est pas authentifié
 			switch($ex->getCode()){
 				 case 401:

+ 5 - 5
install.php

@@ -169,7 +169,7 @@ try {
 			$parts = explode('?',$root);
 			$root = array_shift($parts);
 
-			if( method_exists($custom['class'], 'pre_form') ) $custom['class']::pre_form();
+			if(isset($custom) &&  method_exists($custom['class'] , 'pre_form') ) $custom['class']::pre_form();
 			?>
 
 			<div class="row justify-content-md-center">
@@ -222,7 +222,7 @@ try {
 			</div>
 			<?php
 
-			if( method_exists($custom['class'], 'post_form') ) $custom['class']::post_form();
+			if(isset($custom) &&  method_exists($custom['class'] , 'post_form') ) $custom['class']::post_form();
 		}
 	} catch (Exception $e) { ?>
 			<div class="alert alert-danger">
@@ -245,7 +245,7 @@ try {
 	<script src="js/vendor/mustache.min.js"></script>
 	<script src="js/plugins.js"></script>
 	<script src="js/main.js"></script>
-	<?php if( method_exists($custom['class'], 'js') ): ?>
+	<?php if(isset($custom) &&  method_exists($custom['class'] , 'js') ): ?>
 		<link href="<?php echo $custom['plugin'].$custom['class']::js(); ?>" rel="stylesheet">
 	<?php endif; ?>
 	<script type="text/javascript">
@@ -300,7 +300,7 @@ function install_core($parameters,$custom){
 	require_once(__ROOT__.'class'.SLASH.'Entity.class.php');
 
 
-	if( method_exists($custom['class'], 'pre_install') ) $custom['class']::pre_install();
+	if(isset($custom) &&  method_exists($custom['class'] , 'pre_install') ) $custom['class']::pre_install();
 
 	//install entities
 	Entity::install(__ROOT__.'class');
@@ -415,7 +415,7 @@ function install_core($parameters,$custom){
 		}
 	}
 
-	if( method_exists($custom['class'], 'post_install') ) $custom['class']::post_install();
+	if(isset($custom) &&  method_exists($custom['class'] , 'post_install') ) $custom['class']::post_install();
 			
 }