* Adjust null to string from pdo.
This commit is contained in:
@@ -2850,6 +2850,7 @@ class baseRouter
|
||||
|
||||
$dbh->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
|
||||
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
$dbh->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_TO_STRING);
|
||||
if(isset($params->strictMode) and $params->strictMode == false) $dbh->exec("SET @@sql_mode= ''");
|
||||
if(isset($params->emulatePrepare)) $dbh->setAttribute(PDO::ATTR_EMULATE_PREPARES, $params->emulatePrepare);
|
||||
if(isset($params->bufferQuery)) $dbh->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, $params->bufferQuery);
|
||||
|
||||
@@ -86,11 +86,11 @@ class storyModel extends model
|
||||
$story->children = array();
|
||||
if($story->parent == '-1') $story->children = $this->dao->select('*')->from(TABLE_STORY)->where('parent')->eq($storyID)->andWhere('deleted')->eq(0)->fetchAll('id');
|
||||
|
||||
if($story->openedDate) $story->openedDate = substr($story->openedDate, 0, 19);
|
||||
if($story->assignedDate) $story->assignedDate = substr($story->assignedDate, 0, 19);
|
||||
if($story->reviewedDate) $story->reviewedDate = substr($story->reviewedDate, 0, 19);
|
||||
if($story->closedDate) $story->closedDate = substr($story->closedDate, 0, 19);
|
||||
if($story->lastEditedDate) $story->lastEditedDate= substr($story->lastEditedDate, 0, 19);
|
||||
$story->openedDate = substr($story->openedDate, 0, 19);
|
||||
$story->assignedDate = substr($story->assignedDate, 0, 19);
|
||||
$story->reviewedDate = substr($story->reviewedDate, 0, 19);
|
||||
$story->closedDate = substr($story->closedDate, 0, 19);
|
||||
$story->lastEditedDate= substr($story->lastEditedDate, 0, 19);
|
||||
|
||||
return $story;
|
||||
}
|
||||
@@ -4973,7 +4973,7 @@ class storyModel extends model
|
||||
}
|
||||
|
||||
$story->planTitle = '';
|
||||
if($story->plan) $storyPlans = explode(',', trim($story->plan, ','));
|
||||
$storyPlans = explode(',', trim($story->plan, ','));
|
||||
foreach($storyPlans as $planID) $story->planTitle .= zget($plans, $planID, '') . ' ';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user