From a0581b451df8a0f484d8ade2594be5381310eeac Mon Sep 17 00:00:00 2001
From: llaffont <llaffont@afi-sa.fr>
Date: Mon, 6 Jul 2015 17:49:10 +0200
Subject: [PATCH] Fix patch 257

---
 cosmogramme/sql/patch/patch_257.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cosmogramme/sql/patch/patch_257.php b/cosmogramme/sql/patch/patch_257.php
index a05b2b40ff2..4c700ae77c5 100644
--- a/cosmogramme/sql/patch/patch_257.php
+++ b/cosmogramme/sql/patch/patch_257.php
@@ -1,5 +1,6 @@
 <?php
-$adapter = Zend_Registry::get('sql');
+$adapter = Zend_Db_Table::getDefaultAdapter();
+
 try {
 	$adapter->query('select rang from reservations limit 1');
 } catch (Exception $e) {
-- 
GitLab