summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/comandos/CrearImagen.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/comandos/CrearImagen.php')
-rw-r--r--admin/WebConsole/comandos/CrearImagen.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/WebConsole/comandos/CrearImagen.php b/admin/WebConsole/comandos/CrearImagen.php
index 532a589a..1944872a 100644
--- a/admin/WebConsole/comandos/CrearImagen.php
+++ b/admin/WebConsole/comandos/CrearImagen.php
@@ -122,7 +122,8 @@ function HTMLSELECT_imagenes($cmd,$idrepositorio,$idperfilsoft,$disk,$particion,
$cmd->texto="SELECT DISTINCT imagenes.idimagen,imagenes.descripcion,imagenes.nombreca,
imagenes.idperfilsoft, repositorios.nombrerepositorio, repositorios.ip
FROM imagenes INNER JOIN repositorios USING (idrepositorio)
- WHERE repositorios.idrepositorio = (SELECT idrepositorio FROM ordenadores WHERE ordenadores.ip='".$masterip."')
+ WHERE imagenes.tipo=".$IMAGENES_MONOLITICAS."
+ AND repositorios.idrepositorio IN (SELECT idrepositorio FROM ordenadores WHERE ordenadores.ip='".$masterip."')
OR repositorios.ip='".$masterip."' ORDER BY imagenes.descripcion";
$rs=new Recordset;