Merge branch 'php53' into 'master'
* Compatible PHP5.3. See merge request easycorp/zentaopms!7007
This commit is contained in:
@@ -28,7 +28,7 @@ class storyChangeEntry extends entry
|
||||
$this->batchSetPost($fields, $oldStory);
|
||||
|
||||
/* If reviewer is not post, set needNotReview. */
|
||||
if(empty($this->request('reviewer')))
|
||||
if(!$this->request('reviewer'))
|
||||
{
|
||||
$this->setPost('reviewer', array());
|
||||
$this->setPost('needNotReview', 1);
|
||||
|
||||
@@ -299,7 +299,7 @@ class backupModel extends model
|
||||
$summaryFile = dirname($backup) . DS . 'summary';
|
||||
if(!file_exists($summaryFile)) return array();
|
||||
|
||||
$summary = json_decode(file_get_contents(dirname($backup) . DS . 'summary'), 'true');
|
||||
$summary = json_decode(file_get_contents(dirname($backup) . DS . 'summary'), true);
|
||||
return isset($summary[basename($backup)]) ? $summary[basename($backup)] : array();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
<?php
|
||||
/**
|
||||
* The case block view file of block module of ZenTaoPMS.
|
||||
|
||||
@@ -46,7 +46,7 @@ class convertModel extends model
|
||||
public function dbExists($dbName = '')
|
||||
{
|
||||
$statement = $this->dbh->prepare('SHOW DATABASES like ?');
|
||||
$statement->execute([$dbName]);
|
||||
$statement->execute(array($dbName));
|
||||
return $statement->fetch();
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<tbody>
|
||||
<?php foreach($releases2Imported as $release):?>
|
||||
<?php $i = 1;?>
|
||||
<?php $rowspan = empty(count($release->builds)) ? 1 : count($release->builds);?>
|
||||
<?php $rowspan = !count($release->builds) ? 1 : count($release->builds);?>
|
||||
<tr>
|
||||
<td rowspan="<?php echo $rowspan;?>" class='c-id'>
|
||||
<div class="checkbox-primary">
|
||||
|
||||
Reference in New Issue
Block a user