~ubuntu-branches/debian/squeeze/spip/squeeze

« back to all changes in this revision

Viewing changes to ecrire/req/mysql.php

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2010-09-18 15:08:53 UTC
  • mfrom: (11.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100918150853-2g8yh71duum53p5s
Added patch to fix int overflow
in articles' published date.
Thanks to David Prévot for reporting.
Closes: #597026 

Show diffs side-by-side

added added

removed removed

Lines of Context:
515
515
function spip_mysql_error($serveur='') {
516
516
        $connexion = &$GLOBALS['connexions'][$serveur ? $serveur : 0];
517
517
        $link = $connexion['link'];
518
 
        return ($link ? mysql_error($link) : mysql_error()) . $connexion['last'];
 
518
        $e = ($link ? mysql_error($link) : mysql_error());
 
519
        return  ($e ? $e . $connexion['last']:'');
519
520
}
520
521
 
521
522
// A transposer dans les portages