Création de votre espace

Créez ici l'espace de votre école, votre centre de formation, votre association

Astuce : pour votre sécurité, votre mot de passe doit comporter au moins 6 caractères.
#!/usr/bin/env python3 """Patch vendor/popinz/entities/models/tags/Tag_entity.php Remove dead-code throw block after assertPopinzTrue guards the condition. assertPopinzTrue($fixedvalues_count>0) already guarantees count>0. The if($fixedvalues_count===0) throw is unreachable when assertions are enabled. """ vendor_path = '/var/lib/application_data/www-blue/popinz-saas/vendor/popinz/entities/models/tags/Tag_entity.php' with open(vendor_path, 'r') as f: content = f.read() old = """assertPopinzTrue($fixedvalues_count>0,'no fixed values'); if ($fixedvalues_count===0) { throw new \\Exception('no fixed values'); } if ($position_value<=0""" new = """assertPopinzTrue($fixedvalues_count>0,'no fixed values'); if ($position_value<=0""" if old in content: content = content.replace(old, new, 1) with open(vendor_path, 'w') as f: f.write(content) print("OK: vendor patched") else: print("Pattern not found")