[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [15309] booking: return null on read_single() with no
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [15309] booking: return null on read_single() with no in-parameter |
Date: |
Tue, 21 Jun 2016 11:00:58 +0000 (UTC) |
Revision: 15309
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15309
Author: sigurdne
Date: 2016-06-21 11:00:58 +0000 (Tue, 21 Jun 2016)
Log Message:
-----------
booking: return null on read_single() with no in-parameter
Modified Paths:
--------------
trunk/booking/inc/class.socommon.inc.php
Modified: trunk/booking/inc/class.socommon.inc.php
===================================================================
--- trunk/booking/inc/class.socommon.inc.php 2016-06-21 10:41:57 UTC (rev
15308)
+++ trunk/booking/inc/class.socommon.inc.php 2016-06-21 11:00:58 UTC (rev
15309)
@@ -289,6 +289,10 @@
function read_single( $id )
{
+ if (!$id)
+ {
+ return null;
+ }
$row = array();
$pk_params = $this->primary_key_conditions($id);
$cols_joins = $this->_get_cols_and_joins();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [15309] booking: return null on read_single() with no in-parameter,
sigurdne <=