[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 14/151: adapt for php 7.0
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 14/151: adapt for php 7.0 |
Date: |
Sat, 4 Feb 2017 17:14:24 +0000 (UTC) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 650b372fab6ffc0ae770fb9ab8f83708386dfdb9
Author: Dany De Bontridder <address@hidden>
Date: Sat Jul 30 00:12:12 2016 +0200
adapt for php 7.0
---
include/admin_repo.inc.php | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/include/admin_repo.inc.php b/include/admin_repo.inc.php
index 16b2afc..8493b39 100644
--- a/include/admin_repo.inc.php
+++ b/include/admin_repo.inc.php
@@ -167,9 +167,15 @@ img {float: right; border: 0px;}
hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color:
#000000;}
';
$a_table=$html->getElementsByTagName("table");
- for ( $i = 0 ; $i < $a_table->length;$i++) {
-
$a_table->item($i)->attributes->getNamedItem("width")->nodeValue="100%";
-
+
+ // For PHP < 7 , we must change the attribute "width"
+ if ( substr(phpversion(),0,1) != "7" )
+ {
+ for ( $i = 0 ; $i < $a_table->length;$i++) {
+ $node=$a_table->item($i);
+ $node->attributes->getNamedItem("width")->nodeValue="100%";
+
+ }
}
$a_title = $html->getElementsByTagName("title");
for ( $i = 0;$i<$a_title->length;$i++) {
- [Noalyss-commit] [noalyss] 04/151: IDate : admit date from before 2000, (continued)
- [Noalyss-commit] [noalyss] 04/151: IDate : admit date from before 2000, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 02/151: Merge branch 'master' of ssh://ns3git/srv/git/noalyss, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 05/151: Merge Merge branch 'master' of ssh://ns3git/srv/git/noalyss, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 08/151: Cosmetic : user / password use placeholder, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 01/151: IText add htmlentities to protect, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 07/151: Regenerated from less, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 10/151: Update doc, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 13/151: Clean code, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 11/151: Merge branch 'master' of ssh://ns3git/srv/git/noalyss, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 15/151: Performance : replace Anc_Grandlivre->display_html with Anc_Grandlivre->load, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 14/151: adapt for php 7.0,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 06/151: improve CSS theme, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 21/151: Documentation Task #2 - Documentation nouveau code, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 18/151: adapt for php 7.0, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 16/151: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 19/151: sécurité Task #8 - Sécurité protection SQL, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 24/151: Scenario pour dév. de comptabilité analytique, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 17/151: add newline at the end of file, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 20/151: Database Ajout d'une fonction pour retirer une seule ligne, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 23/151: Export en PDF d'operation : PDF_Operation::print_section Task #10 - PDF_Operation : ajout titre Analytique, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 26/151: Scenario test pour PDF_Operation, Dany De Bontridder, 2017/02/04