Browse Source

Petits changements mineurs

Alexandre Alapetite 12 years ago
parent
commit
6e52983906
2 changed files with 4 additions and 4 deletions
  1. 3 3
      app/controllers/feedController.php
  2. 1 1
      public/index.php

+ 3 - 3
app/controllers/feedController.php

@@ -186,7 +186,7 @@ class feedController extends ActionController {
 		$entryDAO->cleanOldEntries ($nb_month_old);
 
 		$url = array ();
-		if ($flux_update == 1) {
+		if ($flux_update === 1) {
 			// on a mis un seul flux à jour
 			$notif = array (
 				'type' => 'good',
@@ -206,14 +206,14 @@ class feedController extends ActionController {
 			);
 		}
 
-		if($i == 1) {
+		if ($i === 1) {
 			// Si on a voulu mettre à jour qu'un flux
 			// on filtre l'affichage par ce flux
 			$feed = reset ($feeds);
 			$url['params'] = array ('get' => 'f_' . $feed->id ());
 		}
 
-		if (Request::param ('ajax', 0) == 0) {
+		if (Request::param ('ajax', 0) === 0) {
 			Session::_param ('notification', $notif);
 			Request::forward ($url, true);
 		} else {

+ 1 - 1
public/index.php

@@ -31,7 +31,7 @@ if (file_exists (PUBLIC_PATH . '/install.php')) {
 	session_cache_limiter('');
 	require (LIB_PATH . '/http-conditional.php');
 	$dateLastModification = max(filemtime(PUBLIC_PATH . '/data/touch.txt'),
-		filemtime(LOG_PATH . '/application.log'),
+		@filemtime(LOG_PATH . '/application.log'),
 		filemtime(PUBLIC_PATH . '/data/Configuration.array.php'),
 		filemtime(APP_PATH . '/configuration/application.ini'),
 		time() - 14400);