<?php
+require_once(realpath(dirname(__FILE__).'/../nb.php'));
/*
$DB_FIELD_TYPES = array(
'bool' => PDO::PARAM_BOOL,
public function out($value,$html_escape=false) {
#if ($value === null) return '';
- static $sqlite = null; if ($sqlite === null) $sqlite = $this->db()->type == 'sqlite';
+ static $sqlite = null; if ($sqlite === null) {
+ $db = $this->db();
+ $sqlite = $db::$type == 'sqlite';
+ }
# Anoying, sqlite does not format properly !
if ($sqlite and preg_match('/^float\((?:\d+,)?(\d+)\)/',$this->type,$m)) {