Author: benj
Date: Mon Jun 27 15:25:04 2016
New Revision: 1719
URL: http://svn.gna.org/viewcvs/gdtc?rev=1719&view=rev
Log:
Fix php error
Modified:
trunk/gdtc/my/index.php
Modified: trunk/gdtc/my/index.php
URL:
http://svn.gna.org/viewcvs/gdtc/trunk/gdtc/my/index.php?rev=1719&r1=1718&r2=1719&view=diff
==============================================================================
--- trunk/gdtc/my/index.php (original)
+++ trunk/gdtc/my/index.php Mon Jun 27 15:25:04 2016
@@ -28,9 +28,8 @@
session_set_cookie_params ( 0, '/', DTC_DOMAIN );
session_start ();
-define ( DTC_HOST_NAME, DTC_MY_HOST_NAME );
-define ( DTC_BASE_URL, DTC_MY_BASE_URL );
-define ( DTC_APP, 'my' );
+define ( 'DTC_HOST_NAME', DTC_MY_HOST_NAME );
+define ( 'DTC_APP', 'my' );
require '../include/errors.php';
try {
@@ -77,7 +76,6 @@
return;
}
-
if ( ! function_exists ( 'my_main' ) )
{
function my_main ( $http_args )
@@ -461,7 +459,7 @@
else
{
- if ( $_SESSION [ 'login' ] )
+ if ( array_key_exists ( 'login', $_SESSION ) )
{
my_index ( $http_args );
}
_______________________________________________
Gdtc-commits mailing list
[email protected]
https://mail.gna.org/listinfo/gdtc-commits