~ubuntu-branches/ubuntu/lucid/phpmyadmin/lucid

« back to all changes in this revision

Viewing changes to libraries/export/odt.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2009-04-25 19:03:00 UTC
  • mfrom: (1.1.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20090425190300-8ilk5hlf1sseou7z
Tags: 4:3.1.4-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
/**
4
4
 * Set of functions used to build CSV dumps of tables
5
5
 *
6
 
 * @version $Id: odt.php 12137 2008-12-14 13:58:06Z lem9 $
 
6
 * @version $Id: odt.php 12349 2009-04-14 13:34:20Z helmo $
7
7
 */
8
8
if (! defined('PHPMYADMIN')) {
9
9
    exit;
355
355
            . '<text:p>' . htmlspecialchars($type) . '</text:p>'
356
356
            . '</table:table-cell>';
357
357
        if (!isset($row['Default'])) {
358
 
            if ($row['Null'] != '') {
 
358
            if ($row['Null'] != 'NO') {
359
359
                $row['Default'] = 'NULL';
360
360
            } else {
361
361
                $row['Default'] = '';
364
364
            $row['Default'] = $row['Default'];
365
365
        }
366
366
        $GLOBALS['odt_buffer'] .= '<table:table-cell office:value-type="string">'
367
 
            . '<text:p>' . htmlspecialchars(($row['Null'] == '') ? $GLOBALS['strNo'] : $GLOBALS['strYes']) . '</text:p>'
 
367
            . '<text:p>' . htmlspecialchars(($row['Null'] == '' || $row['Null'] == 'NO') ? $GLOBALS['strNo'] : $GLOBALS['strYes']) . '</text:p>'
368
368
            . '</table:table-cell>';
369
369
        $GLOBALS['odt_buffer'] .= '<table:table-cell office:value-type="string">'
370
370
            . '<text:p>' . htmlspecialchars($row['Default']) . '</text:p>'