[thirdparty-commits] russell: mantis/trunk r145 - /mantis/trunk/core/database_api.php
SVN commits to the Digium third-party software repository
thirdparty-commits at lists.digium.com
Tue Jan 19 12:27:52 CST 2010
Author: russell
Date: Tue Jan 19 12:27:49 2010
New Revision: 145
URL: http://svnview.digium.com/svn/thirdparty?view=rev&rev=145
Log:
Avoid some explosions when using the SOAP API.
Modified:
mantis/trunk/core/database_api.php
Modified: mantis/trunk/core/database_api.php
URL: http://svnview.digium.com/svn/thirdparty/mantis/trunk/core/database_api.php?view=diff&rev=145&r1=144&r2=145
==============================================================================
--- mantis/trunk/core/database_api.php (original)
+++ mantis/trunk/core/database_api.php Tue Jan 19 12:27:49 2010
@@ -368,6 +368,11 @@
function db_prepare_string( $p_string ) {
global $g_db;
$t_db_type = config_get( 'db_type' );
+
+ # XXX Avoid sometimes blowing up when using the SOAP API ...
+ if (is_string($p_string) == false) {
+ return;
+ }
switch( $t_db_type ) {
case 'mssql':
More information about the thirdparty-commits
mailing list