[Lsb-messages] /var/www/bzr/lsb/devel/dbadmin r258: Fix handling of interfaces without return type

Denis Silakov denis.silakov at rosalab.ru
Tue May 29 09:13:19 UTC 2012


------------------------------------------------------------
revno: 258
committer: Denis Silakov <denis.silakov at rosalab.ru>
branch nick: dbadmin
timestamp: Tue 2012-05-29 13:13:19 +0400
message:
  Fix handling of interfaces without return type
modified:
  int_single.inc
-------------- next part --------------
=== modified file 'int_single.inc'
--- a/int_single.inc	2012-05-21 07:14:07 +0000
+++ b/int_single.inc	2012-05-29 09:13:19 +0000
@@ -1475,7 +1475,7 @@
             }
 
             $selectRetTypes = "SELECT DISTINCT Tid, Tname, Ttype FROM ArchInt
-                                LEFT JOIN Type ON Tid=AIreturn
+                                JOIN Type ON Tid=AIreturn
                                 WHERE AIint=$Iid ";
             if( $appearedin > "" and (!isset($withdrawnin) or $withdrawnin == "") ) {
                 $selectRetTypes.= "AND AIappearedin > '' AND AIwithdrawnin IS NULL ";
@@ -1486,7 +1486,7 @@
                 $rowRetTypes = mysqli_fetch_array($resRetTypes);
                 $retType = form_return_type($rowRetTypes['Tid'], $rowRetTypes['Ttype'], $rowRetTypes['Tname'], $Iname);
             }
-            else {
+            else if( count($resRetTypes) > 1 ) {
                 $retType = "<i>See details</i>";
             }
 



More information about the lsb-messages mailing list