mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:43 +01:00
an other one: fix sql error if link-id (accidently) contains non-ascii chars
This commit is contained in:
parent
d59c15582f
commit
0f72e3d58d
@ -303,6 +303,7 @@ class solink
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$deleted = array();
|
$deleted = array();
|
||||||
|
try {
|
||||||
foreach(self::$db->select(self::TABLE,'*',$where,__LINE__,__FILE__) as $row)
|
foreach(self::$db->select(self::TABLE,'*',$where,__LINE__,__FILE__) as $row)
|
||||||
{
|
{
|
||||||
$deleted[] = $row;
|
$deleted[] = $row;
|
||||||
@ -318,6 +319,12 @@ class solink
|
|||||||
{
|
{
|
||||||
self::$db->delete(self::TABLE,$where,__LINE__,__FILE__);
|
self::$db->delete(self::TABLE,$where,__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// catch Illegal mix of collations (ascii_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' (1267)
|
||||||
|
// caused by non-ascii chars compared with ascii field uid
|
||||||
|
catch(egw_exception_db $e) {
|
||||||
|
_egw_log_exception($e);
|
||||||
|
}
|
||||||
|
|
||||||
return $deleted;
|
return $deleted;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user