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

Commit 501a238

Browse files
author
Charles Marion
committed
BUG: midas lib was unable to load itemrevision dao on linux
1 parent 9161614 commit 501a238

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

library/MIDAS/models/MIDASModel.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,12 @@ public function findBy($var, $value)
248248
$return = array();
249249
foreach($rowset as $row)
250250
{
251-
$tmpDao = $this->initDao(ucfirst($this->_name), $row);
251+
$daoName = ucfirst($this->_name);
252+
if(isset($this->_daoName))
253+
{
254+
$daoName = substr($this->_daoName, 0, strlen($this->_daoName)-3);
255+
}
256+
$tmpDao = $this->initDao($daoName, $row);
252257
$return[] = $tmpDao;
253258
unset($tmpDao);
254259
}

0 commit comments

Comments
 (0)