[evolvis-commits] r12014: Remove warnings↵
mirabilos at evolvis.org
mirabilos at evolvis.org
Thu Feb 24 18:33:18 CET 2011
Author: mirabilos
Date: 2011-02-24 18:33:18 +0100 (Thu, 24 Feb 2011)
New Revision: 12014
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge/plugins/projects_hierarchy/www/softwaremap.php
trunk/gforge_base/evolvisforge-5.1/gforge/www/include/trove.php
trunk/gforge_base/evolvisforge-5.1/gforge/www/snippet/index.php
Log:
Remove warnings
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/plugins/projects_hierarchy/www/softwaremap.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/plugins/projects_hierarchy/www/softwaremap.php 2011-02-24 17:33:16 UTC (rev 12013)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/plugins/projects_hierarchy/www/softwaremap.php 2011-02-24 17:33:18 UTC (rev 12014)
@@ -375,8 +375,9 @@
//echo $key . "<br/>";
//we build a array with id of father and son.
//If no father --> 0
- if(!$arbre[$key] != 0){
- $arbre[$key] = 0 ;
+ // Really don't know why there is a warning there, and added @
+ if(@!$arbre[$key] != 0){
+ $arbre[$key] = 0 ;
}
$cpt_pere = $key;
foreach ($sons as $son) {
@@ -421,7 +422,8 @@
aff_tree($tree, 0);
}
-docman_display_documents($nested_groups,$df,$is_editor);
+//docman_display_documents($nested_groups,$df,$is_editor);
+docman_display_documents($nested_groups,$df,'');
$HTML->footer(array());
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/trove.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/trove.php 2011-02-24 17:33:16 UTC (rev 12013)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/trove.php 2011-02-24 17:33:18 UTC (rev 12014)
@@ -238,6 +238,7 @@
ORDER BY trove_cat.fullpath");
$return = '';
+ $need_close_ul_tag = 0;
if (db_numrows($res_trovecat) < 1) {
$return .= _('This project has not yet categorized itself in the')
.' <a href="'.$GLOBALS['sys_urlprefix'].'/softwaremap/trove_list.php">'
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/snippet/index.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/snippet/index.php 2011-02-24 17:33:16 UTC (rev 12013)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/snippet/index.php 2011-02-24 17:33:18 UTC (rev 12014)
@@ -36,7 +36,7 @@
function snippet_mainpage() {
global $SCRIPT_LANGUAGE,$SCRIPT_CATEGORY;
global $Language;
- $return .=_('<p>The purpose of this archive is to let you share your code snippets, scripts, and functions with the Open Source Software Community.</p><p>You can create a "new snippet", then post additional versions of that snippet quickly and easily.</p><p>Once you have snippets posted, you can then create a "Package" of snippets. That package can contain multiple, specific versions of other snippets.</p><p> </p><h3>Browse Snippets</h3> <p>You can browse the snippet library quickly:</p>').'
+ $return =_('<p>The purpose of this archive is to let you share your code snippets, scripts, and functions with the Open Source Software Community.</p><p>You can create a "new snippet", then post additional versions of that snippet quickly and easily.</p><p>Once you have snippets posted, you can then create a "Package" of snippets. That package can contain multiple, specific versions of other snippets.</p><p> </p><h3>Browse Snippets</h3> <p>You can browse the snippet library quickly:</p>').'
<br />
<p/>
<table width="100%" border="0">
@@ -49,7 +49,8 @@
$existing_snippets = create_snippet_hash("SELECT language, count(*) as count from snippet group by language", "language");
for ($i=1; $i<count($SCRIPT_LANGUAGE); $i++) {
$return .= '<li><a href="'.$GLOBALS['sys_urlprefix'].'/snippet/browse.php?by=lang&lang='.$i.'">'.$SCRIPT_LANGUAGE[$i].'</a> (';
- if ($existing_snippets[$i]) {
+ // Remove warning
+ if (@$existing_snippets[$i]) {
$return .= $existing_snippets[$i].')</li>';
} else {
$return .= '0)</li>';
@@ -63,8 +64,10 @@
$existing_categories = create_snippet_hash("SELECT category, count(*) as count from snippet group by category", "category");
for ($i=1; $i<count($SCRIPT_CATEGORY); $i++) {
- $return .= '<li><a href="'.$GLOBALS['sys_urlprefix'].'/snippet/browse.php?by=cat&cat='.$i.'">'.$SCRIPT_CATEGORY[$i].'</a> (';
- if ($existing_categories[$i]) {
+ // Remove warning
+ @$return .= '<li><a href="'.$GLOBALS['sys_urlprefix'].'/snippet/browse.php?by=cat&cat='.$i.'">'.$SCRIPT_CATEGORY[$i].'</a> (';
+ // Remove warning
+ if (@$existing_categories[$i]) {
$return .= $existing_categories[$i].')</li>';
} else {
$return .= '0)</li>';
More information about the evolvis-commits
mailing list