Object constructors shouldn't require an id if passed a $oRow object. Gets rid of
objectGetInstanceFromRow() since we can pass the row into the constructor instead.
This commit is contained in:
committed by
WineHQ
parent
d0022decd4
commit
f7b24fab9a
@@ -17,7 +17,7 @@ class appData
|
||||
|
||||
function appData($iId = null, $oRow = null)
|
||||
{
|
||||
if(!$iId)
|
||||
if(!$iId && !$oRow)
|
||||
return;
|
||||
|
||||
if(!$oRow)
|
||||
|
||||
Reference in New Issue
Block a user