Two small corrections

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
mahjong

Two small corrections

Post by mahjong »

Two small corrections :
  • selected in edithtmlblob
  • space missing in listmodule

Code: Select all

Index: edithtmlblob.php
===================================================================
--- edithtmlblob.php	(revision 3422)
+++ edithtmlblob.php	(working copy)
@@ -197,7 +197,7 @@
 	$newresult = $db->Execute($query,array($htmlblob_id));
 	if ($newresult && $newresult->RecordCount() > 0)
 	{
-		$addt_users .= " selected=\"true\"";
+		$addt_users .= " selected=\"selected\"";
 	}
 	$addt_users .= ">".$row["username"]."</option>";
 }
Index: listmodules.php
===================================================================
--- listmodules.php	(revision 3422)
+++ listmodules.php	(working copy)
@@ -574,7 +574,7 @@
 					while ($result && $row = $result->FetchRow()) {
 						$dependentof[$row['child_module']] = "";
 					}
-					$str = implode(array_keys($dependentof),",");
+					$str = implode(array_keys($dependentof),', ');
 					$activecol = ($dbm[$key]['Active']==true?$image_true:"<a href='listmodules.php?action=settrue&module=".$key."'>".$image_false."</a>");
 					$statuscol .= "<br/>".lang('hasdependents')." (<strong>$str</strong>)";
 					// END HAS DEPENDENTS ===========
[gelöscht durch Administrator]
Post Reply

Return to “Developers Discussion”