empty path are not wiki ...
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 30 Jul 2006 12:59:27 +0000 (12:59 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 30 Jul 2006 12:59:27 +0000 (12:59 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@723 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs.net/index.php
htdocs/index.php

index 1c07de0..fd4c3a8 100644 (file)
@@ -26,8 +26,7 @@ require 'xnet.inc.php';
 require_once dirname(__FILE__).'/../classes/Xnet.php';
 require_once dirname(__FILE__).'/../classes/PLModule.php';
 
-if (($path = Env::v('n')) && substr($path, 0, 4) != 'Xnet') {
-
+if (!($path = Env::v('n')) || substr($path, 0, 4) != 'Xnet') {
     $platal = new Xnet('xnet', 'xnetgrp', 'xnetlists', 'xnetevents', 'geoloc');
     $platal->run();
 
index a81494d..b372e97 100644 (file)
@@ -26,7 +26,7 @@ require_once 'xorg.inc.php';
 require_once dirname(__FILE__).'/../classes/Platal.php';
 require_once dirname(__FILE__).'/../classes/PLModule.php';
 
-if (($path = Env::v('n')) && ($path{0} < 'A' || $path{0} > 'Z')) {
+if (!($path = Env::v('n')) || ($path{0} < 'A' || $path{0} > 'Z')) {
 
     $platal = new Platal('auth', 'banana', 'carnet', 'email', 'events',
                          'geoloc', 'lists', 'marketing', 'payment', 'platal',