From: <pan...@us...> - 2008-09-25 11:03:52
|
Revision: 376 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=376&view=rev Author: panzaboi Date: 2008-09-25 11:03:47 +0000 (Thu, 25 Sep 2008) Log Message: ----------- small fix Modified Paths: -------------- website/library/Ostacium/Db/Table.php Modified: website/library/Ostacium/Db/Table.php =================================================================== --- website/library/Ostacium/Db/Table.php 2008-09-25 09:13:17 UTC (rev 375) +++ website/library/Ostacium/Db/Table.php 2008-09-25 11:03:47 UTC (rev 376) @@ -9,7 +9,11 @@ public function get($pPrimaryKey) { - return parent::find($pPrimaryKey)->current()->toArray(); + $get = parent::find($pPrimaryKey)->current(); + if ($get) + return $get->toArray(); + else + return $get; } public function insert($data) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |