Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit cd52c8d

Browse files
author
Charles Marion
committed
BUG: fixed cdash errors
fixed bug #124
1 parent e66f00f commit cd52c8d

File tree

7 files changed

+6
-8
lines changed

7 files changed

+6
-8
lines changed

core/controllers/BrowseController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function indexAction()
3737

3838
$this->view->itemThumbnails = $this->Item->getRandomThumbnails($this->userSession->Dao, 0, 12, true);
3939

40-
$this->view->items = $this->Item->getMostPopulars($this->userSession->Dao,30);
40+
$this->view->items = $this->Item->getMostPopulars($this->userSession->Dao, 30);
4141

4242
$this->view->nUsers = $this->User->getCountAll();
4343
$this->view->nCommunities = $this->Community->getCountAll();

core/controllers/FolderController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ public function viewAction()
126126
}
127127
$parent = $parent->getParent();
128128
}
129-
$header = "<ul class = 'pathBrowser'>"
130-
.$header;
129+
$header = "<ul class = 'pathBrowser'>".$header;
131130
$header .= "</ul>";
132131
}
133132

core/controllers/components/NotifyErrorComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function fatalEror($logger, $mailer)
113113
return;
114114
}
115115
header('content-type: text/plain');
116-
if (count(ob_list_handlers()) > 0)
116+
if(count(ob_list_handlers()) > 0)
117117
{
118118
ob_clean();
119119
}

core/controllers/components/UploadComponent.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ public function createUploadedItem($userDao, $name, $path, $parent = null, $lice
234234
Zend_Loader::loadClass("ItemDao", BASE_PATH . '/core/models/dao');
235235
$item = new ItemDao;
236236
$item->setName($name);
237-
$item->setDate(date('c'));
238237
$item->setDescription('');
239238
$item->setType(0);
240239
$item->setThumbnail('');

core/models/base/ItemModelBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ abstract function getSharedToUser($userDao, $limit = 20);
4747
abstract function getSharedToCommunity($communityDao, $limit = 20);
4848
abstract function policyCheck($itemdao, $userDao = null, $policy = 0);
4949
abstract function getLastRevision($itemdao);
50-
abstract function getMostPopulars($userDao, $limit=20);
50+
abstract function getMostPopulars($userDao, $limit = 20);
5151
abstract function getRandomThumbnails($userDao = null, $policy = 0, $limit = 10, $thumbnailFilter = false);
5252

5353
/** save */

core/models/pdo/ItemModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function getSharedToCommunity($communityDao, $limit = 20)
5757
* @param type $limit
5858
* @return Array
5959
*/
60-
function getMostPopulars($userDao, $limit=20)
60+
function getMostPopulars($userDao, $limit = 20)
6161
{
6262
$sql = $this->database->select()
6363
->setIntegrityCheck(false)

library/MIDAS/models/MIDASDatabaseMongo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function save($dataarray)
141141
// The key is always _id in MongoDB
142142
$keyvalue = $dataarray[$this->_key];
143143
$collection = $this->_name;
144-
$this->_db->$collection->update(array('_id',$keyvalue),$dataarray);
144+
$this->_db->$collection->update(array('_id', $keyvalue), $dataarray);
145145
}
146146
else
147147
{

0 commit comments

Comments
 (0)