From 436439886cd8eb0dc0865df674db60b0afe3ef03 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 10 Oct 2012 21:57:35 +1300 Subject: [PATCH] Session: clarify code for setting date format. --- inc/Session.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/Session.php b/inc/Session.php index 1635fd4..49b9ab5 100644 --- a/inc/Session.php +++ b/inc/Session.php @@ -286,7 +286,8 @@ class Session $this->{$k} = $v; } - $qry = new AwlQuery( "SET DATESTYLE TO ?", ($this->date_format_type == 'E' ? 'European,ISO' : ($this->date_format_type == 'U' ? 'US,ISO' : 'ISO')) ); + $date_format = ($this->date_format_type == 'E' ? 'European,ISO' : ($this->date_format_type == 'U' ? 'US,ISO' : 'ISO')); + $qry = new AwlQuery( 'SET DATESTYLE TO '. $date_format ); $qry->Exec(); $this->GetRoles(); -- 2.11.4.GIT